@Test public void testImage() throws IOException { Image image = new Image("", 1L, new Binary( new MockMultipartFile("image", "filename.png", "text/plain", "some xml".getBytes()).getBytes())); Assert.assertEquals((Long)1L, image.getImageId()); }
public Image() { }
Image { public Image() { } }
Image { public Image() { } Image();  Image(Long imageId, Binary image);  Image(String id, Long imageId, Binary image); }
Image { public Image() { } Image();  Image(Long imageId, Binary image);  Image(String id, Long imageId, Binary image); String getId(); void setId(String id); void setImageId(Long imageId); Long getImageId(); Binary getImage(); void setImage(Binary image); }
Image { public Image() { } Image();  Image(Long imageId, Binary image);  Image(String id, Long imageId, Binary image); String getId(); void setId(String id); void setImageId(Long imageId); Long getImageId(); Binary getImage(); void setImage(Binary image);  }