ATS-68 : ATS-16: Fix error status code mapping for expected invalid requests

- updated tests
   - added negative test for 400 reply
This commit is contained in:
Denis Ungureanu
2018-08-21 14:05:31 +03:00
parent 22573da79c
commit 9fdafcb60f
5 changed files with 32 additions and 5 deletions

View File

@@ -48,6 +48,7 @@ import org.junit.runner.RunWith;
import org.mockito.stubbing.Answer;
import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest;
import org.springframework.boot.test.mock.mockito.SpyBean;
import org.springframework.http.MediaType;
import org.springframework.mock.web.MockMultipartFile;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.test.web.servlet.request.MockMvcRequestBuilders;
@@ -133,5 +134,7 @@ public class LibreOfficeControllerTest extends AbstractTransformerControllerTest
{
transformRequest.setSourceExtension("doc");
transformRequest.setTargetExtension("pdf");
transformRequest.setSourceMediaType("application/msword");
transformRequest.setTargetMediaType(MediaType.IMAGE_PNG_VALUE);
}
}