@Test(expected = IllegalArgumentException.class) public void testScaleFactorZero() { ImageScaler.scale(img, 0.0); }
public static BufferedImage scale(BufferedImage image, ImageSize size) { if (size == null) { log.error("The supplied image size is null."); throw new NullPointerException("The supplied image size is null."); } return scale(image, size.getWidth(), size.getHeight()); }
ImageScaler { public static BufferedImage scale(BufferedImage image, ImageSize size) { if (size == null) { log.error("The supplied image size is null."); throw new NullPointerException("The supplied image size is null."); } return scale(image, size.getWidth(), size.getHeight()); } }
ImageScaler { public static BufferedImage scale(BufferedImage image, ImageSize size) { if (size == null) { log.error("The supplied image size is null."); throw new NullPointerException("The supplied image size is null."); } return scale(image, size.getWidth(), size.getHeight()); } private  ImageScaler(); }
ImageScaler { public static BufferedImage scale(BufferedImage image, ImageSize size) { if (size == null) { log.error("The supplied image size is null."); throw new NullPointerException("The supplied image size is null."); } return scale(image, size.getWidth(), size.getHeight()); } private  ImageScaler(); static BufferedImage scale(BufferedImage image, ImageSize size); static BufferedImage scale(BufferedImage image, double scalingFactor); static BufferedImage scale(BufferedImage image, double widthScaling,
      double heightScaling); static BufferedImage scale(BufferedImage image, int size); static BufferedImage scale(BufferedImage image, int width, int height); }
ImageScaler { public static BufferedImage scale(BufferedImage image, ImageSize size) { if (size == null) { log.error("The supplied image size is null."); throw new NullPointerException("The supplied image size is null."); } return scale(image, size.getWidth(), size.getHeight()); } private  ImageScaler(); static BufferedImage scale(BufferedImage image, ImageSize size); static BufferedImage scale(BufferedImage image, double scalingFactor); static BufferedImage scale(BufferedImage image, double widthScaling,
      double heightScaling); static BufferedImage scale(BufferedImage image, int size); static BufferedImage scale(BufferedImage image, int width, int height);  }