Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- File outputFile = null
- @Before
- public void setup() throws IOException{
- outputFile = File.createTempFile("prefix", "png", new File("/tmp"));
- }
- @Test
- public void saveImage_noImageFile_ko(){
- 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