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: sizer
test_class.modifier: private
test_class.original_string: private SizeHandler sizer;
test_class.type: SizeHandler
test_class.var_name: sizer
test_class.file: transformer/src/test/java/org/apache/sling/cms/transformer/internal/SizeHandlerTest.java
test_class.identifier: SizeHandlerTest
test_case.body: @Test
      public void testInvalidHeight() throws IOException {
          try {
              Map<String, Object> config = new HashMap<>();
              config.put(SizeHandler.PN_WIDTH, 200);
              config.put(SizeHandler.PN_HEIGHT, "h");
              sizer.handle(builder, new MockResource("/conf", config, Mockito.mock(ResourceResolver.class)));
              fail();
          } catch (IOException | IllegalArgumentException e) {
          }
      }
test_case.class_method_signature: SizeHandlerTest.testInvalidHeight()
test_case.full_signature: @Test public void testInvalidHeight()
test_case.identifier: testInvalidHeight
test_case.invocations: put put handle mock fail
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testInvalidHeight()
focal_class.declarator: PN_HEIGHT = "height"
focal_class.modifier: public static final
focal_class.original_string: public static final String PN_HEIGHT = "height";
focal_class.type: String
focal_class.var_name: PN_HEIGHT
focal_class.declarator: PN_WIDTH = "width"
focal_class.modifier: public static final
focal_class.original_string: public static final String PN_WIDTH = "width";
focal_class.type: String
focal_class.var_name: PN_WIDTH
focal_class.file: transformer/src/main/java/org/apache/sling/cms/transformer/internal/SizeHandler.java
focal_class.identifier: SizeHandler
focal_class.interfaces: implements TransformationHandler
focal_class.class_method_signature: SizeHandler.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: SizeHandler.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 {
          int width = config.getValueMap().get(PN_WIDTH, -1);
          int height = config.getValueMap().get(PN_HEIGHT, -1);
          builder.size(width, height);
      }
focal_method.class_method_signature: SizeHandler.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: get getValueMap get getValueMap size
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)