I have a method that deals with an image. The method takes one image, performs some manipulations over it and returns another image:
public BufferedImage manipulateImage (Image image) {
...
}
I'm not sure if there are any best practices of writing unit tests for such activities. What characteristics of the image should be checked at a first place? How to check if the image was not spoiled? For instance, once I faced a problem when GIF images became color-inverted after reading them with ImageIO
and saving back.