Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Test
- public void saveImage_noImageFile_ko() throws IOException {
- File outputFile = File.createTempFile("prefix", "png", new File("/tmp"));
- ProductImage image = new ProductImage("01010101010101",
- ProductImageField.FRONT,
- outputFile);
- Response response = serviceWrite.saveImage(image.getCode(),
- image.getField(),
- image.getImguploadFront(),
- image.getImguploadIngredients(),
- image.getImguploadNutrition())
- .execute();
- assertTrue(response.isSuccess());
- assertThatJson(response.body())
- .node("status")
- .isEqualTo("status not ok");
- }
Advertisement
Add Comment
Please, Sign In to add comment