test_class.declarator: IMG_DATA = "iVBORw0KGgoAAAANSUhEUgAAAM0AAADNCAMAAAAsYgRbAAAAGXRFWHRTb2Z0d"
        + "2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABJQTFRF3NSmzMewPxIG//ncJEJsldTou1jHgAAAARBJREFUeNrs2EE"
        + "KgCAQBVDLuv+V20dENbMY831wKz4Y/VHb/5RGQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0PzMWtya"
        + "GhoaGhoaGhoaGhoaGhoxtb0QGhoaGhoaGhoaGhoaGhoaMbRLEvv50VTQ9OTQ5OpyZ01GpM2g0bfmDQaL7S+ofFC6xv"
        + "3ZpxJiywakzbvd9r3RWPS9I2+MWk0+kbf0Hih9Y17U0nTHibrDDQ0NDQ0NDQ0NDQ0NDQ0NTXbRSL/AK72o6GhoaGho"
        + "RlL8951vwsNDQ0NDQ1NDc0WyHtDTEhDQ0NDQ0NTS5MdGhoaGhoaGhoaGhoaGhoaGhoaGhoaGposzSHAAErMwwQ2HwR"
        + "QAAAAAElFTkSuQmCC"
test_class.modifier: private static final
test_class.original_string: private static final String IMG_DATA = "iVBORw0KGgoAAAANSUhEUgAAAM0AAADNCAMAAAAsYgRbAAAAGXRFWHRTb2Z0d"
        + "2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABJQTFRF3NSmzMewPxIG//ncJEJsldTou1jHgAAAARBJREFUeNrs2EE"
        + "KgCAQBVDLuv+V20dENbMY831wKz4Y/VHb/5RGQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0PzMWtya"
        + "GhoaGhoaGhoaGhoaGhoxtb0QGhoaGhoaGhoaGhoaGhoaMbRLEvv50VTQ9OTQ5OpyZ01GpM2g0bfmDQaL7S+ofFC6xv"
        + "3ZpxJiywakzbvd9r3RWPS9I2+MWk0+kbf0Hih9Y17U0nTHibrDDQ0NDQ0NDQ0NDQ0NDQ0NTXbRSL/AK72o6GhoaGho"
        + "RlL8951vwsNDQ0NDQ1NDc0WyHtDTEhDQ0NDQ0NTS5MdGhoaGhoaGhoaGhoaGhoaGhoaGhoaGposzSHAAErMwwQ2HwR"
        + "QAAAAAElFTkSuQmCC";
test_class.type: String
test_class.var_name: IMG_DATA
test_class.declarator: img
test_class.modifier: private
test_class.original_string: private BufferedImage img;
test_class.type: BufferedImage
test_class.var_name: img
test_class.declarator: widthBefore
test_class.modifier: private
test_class.original_string: private int widthBefore;
test_class.type: int
test_class.var_name: widthBefore
test_class.declarator: heightBefore
test_class.modifier: private
test_class.original_string: private int heightBefore;
test_class.type: int
test_class.var_name: heightBefore
test_class.file: services/tools.descartes.teastore.image/src/test/java/tools/descartes/teastore/image/TestImageScaler.java
test_class.identifier: TestImageScaler
test_case.body: @Test
    public void testScale() {
      BufferedImage uut = ImageScaler.scale(img, ImageSizePreset.FULL.getSize());
      assertEquals(ImageSizePreset.FULL.getSize().getWidth(), uut.getWidth());
      assertEquals(ImageSizePreset.FULL.getSize().getHeight(), uut.getHeight());
      uut = ImageScaler.scale(img, ImageSizePreset.ICON.getSize());
      assertEquals(ImageSizePreset.ICON.getSize().getWidth(), uut.getWidth());
      assertEquals(ImageSizePreset.ICON.getSize().getHeight(), uut.getHeight());
  
      uut = ImageScaler.scale(img, 2.2);
      assertEquals((int) (widthBefore * 2.2), uut.getWidth());
      assertEquals((int) (heightBefore * 2.2), uut.getHeight());
      uut = ImageScaler.scale(img, 0.33);
      assertEquals((int) (widthBefore * 0.33), uut.getWidth());
      assertEquals((int) (heightBefore * 0.33), uut.getHeight());
      uut = ImageScaler.scale(img, 1.0);
      assertEquals(widthBefore, uut.getWidth());
      assertEquals(heightBefore, uut.getHeight());
      uut = ImageScaler.scale(img, 0.001);
      assertEquals(1, uut.getWidth());
      assertEquals(1, uut.getHeight());
  
      uut = ImageScaler.scale(img, 1.0, 2.5);
      assertEquals(widthBefore, uut.getWidth());
      assertEquals((int) (heightBefore * 2.5), uut.getHeight());
      uut = ImageScaler.scale(img, 2.5, 1.0);
      assertEquals((int) (widthBefore * 2.5), uut.getWidth());
      assertEquals(heightBefore, uut.getHeight());
      uut = ImageScaler.scale(img, 0.5, 4.0);
      assertEquals((int) (widthBefore * 0.5), uut.getWidth());
      assertEquals((int) (heightBefore * 4.0), uut.getHeight());
      uut = ImageScaler.scale(img, 4.0, 0.5);
      assertEquals((int) (widthBefore * 4.0), uut.getWidth());
      assertEquals((int) (heightBefore * 0.5), uut.getHeight());
  
      uut = ImageScaler.scale(img, 807);
      assertEquals(807, uut.getWidth());
      assertEquals(807, uut.getHeight());
      uut = ImageScaler.scale(img, 122);
      assertEquals(122, uut.getWidth());
      assertEquals(122, uut.getHeight());
      uut = ImageScaler.scale(img, widthBefore);
      assertEquals(widthBefore, uut.getWidth());
      assertEquals(widthBefore, uut.getHeight());
  
      uut = ImageScaler.scale(img, widthBefore, 654);
      assertEquals(widthBefore, uut.getWidth());
      assertEquals(654, uut.getHeight());
      uut = ImageScaler.scale(img, 654, heightBefore);
      assertEquals(654, uut.getWidth());
      assertEquals(heightBefore, uut.getHeight());
      uut = ImageScaler.scale(img, 111, 555);
      assertEquals(111, uut.getWidth());
      assertEquals(555, uut.getHeight());
      uut = ImageScaler.scale(img, 555, 111);
      assertEquals(555, uut.getWidth());
      assertEquals(111, uut.getHeight());
      uut = ImageScaler.scale(img, 1, 1);
      assertEquals(1, uut.getWidth());
      assertEquals(1, uut.getHeight());
    }
test_case.class_method_signature: TestImageScaler.testScale()
test_case.full_signature: @Test public void testScale()
test_case.identifier: testScale
test_case.invocations: scale getSize assertEquals getWidth getSize getWidth assertEquals getHeight getSize getHeight scale getSize assertEquals getWidth getSize getWidth assertEquals getHeight getSize getHeight scale assertEquals getWidth assertEquals getHeight scale assertEquals getWidth assertEquals getHeight scale assertEquals getWidth assertEquals getHeight scale assertEquals getWidth assertEquals getHeight scale assertEquals getWidth assertEquals getHeight scale assertEquals getWidth assertEquals getHeight scale assertEquals getWidth assertEquals getHeight scale assertEquals getWidth assertEquals getHeight scale assertEquals getWidth assertEquals getHeight scale assertEquals getWidth assertEquals getHeight scale assertEquals getWidth assertEquals getHeight scale assertEquals getWidth assertEquals getHeight scale assertEquals getWidth assertEquals getHeight scale assertEquals getWidth assertEquals getHeight scale assertEquals getWidth assertEquals getHeight scale assertEquals getWidth assertEquals getHeight
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testScale()
focal_class.declarator: log = LoggerFactory.getLogger(ImageScaler.class)
focal_class.modifier: private static
focal_class.original_string: private static Logger log = LoggerFactory.getLogger(ImageScaler.class);
focal_class.type: Logger
focal_class.var_name: log
focal_class.file: services/tools.descartes.teastore.image/src/main/java/tools/descartes/teastore/image/ImageScaler.java
focal_class.identifier: ImageScaler
focal_class.class_method_signature: ImageScaler.ImageScaler()
focal_class.full_signature: private  ImageScaler()
focal_class.identifier: ImageScaler
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  ImageScaler()
focal_class.class_method_signature: ImageScaler.scale(BufferedImage image, ImageSize size)
focal_class.full_signature: public static BufferedImage scale(BufferedImage image, ImageSize size)
focal_class.identifier: scale
focal_class.modifiers: public static
focal_class.parameters: (BufferedImage image, ImageSize size)
focal_class.return: BufferedImage
focal_class.signature: BufferedImage scale(BufferedImage image, ImageSize size)
focal_class.class_method_signature: ImageScaler.scale(BufferedImage image, double scalingFactor)
focal_class.full_signature: public static BufferedImage scale(BufferedImage image, double scalingFactor)
focal_class.identifier: scale
focal_class.modifiers: public static
focal_class.parameters: (BufferedImage image, double scalingFactor)
focal_class.return: BufferedImage
focal_class.signature: BufferedImage scale(BufferedImage image, double scalingFactor)
focal_class.class_method_signature: ImageScaler.scale(BufferedImage image, double widthScaling,
        double heightScaling)
focal_class.full_signature: public static BufferedImage scale(BufferedImage image, double widthScaling,
        double heightScaling)
focal_class.identifier: scale
focal_class.modifiers: public static
focal_class.parameters: (BufferedImage image, double widthScaling,
        double heightScaling)
focal_class.return: BufferedImage
focal_class.signature: BufferedImage scale(BufferedImage image, double widthScaling,
        double heightScaling)
focal_class.class_method_signature: ImageScaler.scale(BufferedImage image, int size)
focal_class.full_signature: public static BufferedImage scale(BufferedImage image, int size)
focal_class.identifier: scale
focal_class.modifiers: public static
focal_class.parameters: (BufferedImage image, int size)
focal_class.return: BufferedImage
focal_class.signature: BufferedImage scale(BufferedImage image, int size)
focal_class.class_method_signature: ImageScaler.scale(BufferedImage image, int width, int height)
focal_class.full_signature: public static BufferedImage scale(BufferedImage image, int width, int height)
focal_class.identifier: scale
focal_class.modifiers: public static
focal_class.parameters: (BufferedImage image, int width, int height)
focal_class.return: BufferedImage
focal_class.signature: BufferedImage scale(BufferedImage image, int width, int height)
focal_method.body: 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());
    }
focal_method.class_method_signature: ImageScaler.scale(BufferedImage image, ImageSize size)
focal_method.full_signature: public static BufferedImage scale(BufferedImage image, ImageSize size)
focal_method.identifier: scale
focal_method.invocations: error scale getWidth getHeight
focal_method.modifiers: public static
focal_method.parameters: (BufferedImage image, ImageSize size)
focal_method.return: BufferedImage
focal_method.signature: BufferedImage scale(BufferedImage image, ImageSize size)