test_class.declarator: builder
test_class.modifier: private
test_class.original_string: private Builder<? extends InputStream> builder;
test_class.type: Builder<? extends InputStream>
test_class.var_name: builder
test_class.declarator: cropper
test_class.modifier: private
test_class.original_string: private CropHandler cropper;
test_class.type: CropHandler
test_class.var_name: cropper
test_class.file: transformer/src/test/java/org/apache/sling/cms/transformer/internal/CropHandlerTest.java
test_class.identifier: CropHandlerTest
test_case.body: @Test
      public void testCropLower() throws IOException {
  
          Resource config = new MockResource("/conf", Collections.singletonMap(CropHandler.PN_POSITION, "center"),
                  Mockito.mock(ResourceResolver.class));
          cropper.handle(builder, config);
          assertNotNull(builder.asBufferedImage());
      }
test_case.class_method_signature: CropHandlerTest.testCropLower()
test_case.full_signature: @Test public void testCropLower()
test_case.identifier: testCropLower
test_case.invocations: singletonMap mock handle assertNotNull asBufferedImage
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testCropLower()
focal_class.declarator: PN_POSITION = "position"
focal_class.modifier: public static final
focal_class.original_string: public static final String PN_POSITION = "position";
focal_class.type: String
focal_class.var_name: PN_POSITION
focal_class.file: transformer/src/main/java/org/apache/sling/cms/transformer/internal/CropHandler.java
focal_class.identifier: CropHandler
focal_class.interfaces: implements TransformationHandler
focal_class.class_method_signature: CropHandler.getResourceType()
focal_class.full_signature: @Override public String getResourceType()
focal_class.identifier: getResourceType
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getResourceType()
focal_class.class_method_signature: CropHandler.handle(Builder<? extends InputStream> builder, Resource config)
focal_class.full_signature: @Override public void handle(Builder<? extends InputStream> builder, Resource config)
focal_class.identifier: handle
focal_class.modifiers: @Override public
focal_class.parameters: (Builder<? extends InputStream> builder, Resource config)
focal_class.return: void
focal_class.signature: void handle(Builder<? extends InputStream> builder, Resource config)
focal_method.body: @Override
      public void handle(Builder<? extends InputStream> builder, Resource config) throws IOException {
          String positionStr = config.getValueMap().get(PN_POSITION, "CENTER").toUpperCase();
          try {
              Positions pos = Positions.valueOf(positionStr);
              builder.crop(pos);
          } catch (IllegalArgumentException e) {
              throw new IOException("Unable to load crop position from " + positionStr, e);
          }
      }
focal_method.class_method_signature: CropHandler.handle(Builder<? extends InputStream> builder, Resource config)
focal_method.full_signature: @Override public void handle(Builder<? extends InputStream> builder, Resource config)
focal_method.identifier: handle
focal_method.invocations: toUpperCase get getValueMap valueOf crop
focal_method.modifiers: @Override public
focal_method.parameters: (Builder<? extends InputStream> builder, Resource config)
focal_method.return: void
focal_method.signature: void handle(Builder<? extends InputStream> builder, Resource config)