test_class.declarator: log = LoggerFactory.getLogger(ImageThumbnailProviderTest.class)
test_class.modifier: private static final
test_class.original_string: private static final Logger log = LoggerFactory.getLogger(ImageThumbnailProviderTest.class);
test_class.type: Logger
test_class.var_name: log
test_class.declarator: context = new SlingContext()
test_class.modifier: @Rule
      public final
test_class.original_string: @Rule
      public final SlingContext context = new SlingContext();
test_class.type: SlingContext
test_class.var_name: context
test_class.declarator: imageFile
test_class.modifier: private
test_class.original_string: private Resource imageFile;
test_class.type: Resource
test_class.var_name: imageFile
test_class.declarator: pdfFile
test_class.modifier: private
test_class.original_string: private Resource pdfFile;
test_class.type: Resource
test_class.var_name: pdfFile
test_class.file: transformer/src/test/java/org/apache/sling/cms/transformer/internal/ImageThumbnailProviderTest.java
test_class.identifier: ImageThumbnailProviderTest
test_case.body: @Test
      public void testImageThumbnailProvider() throws IOException {
          log.info("testImageThumbnailProvider");
          ImageThumbnailProvider itp = new ImageThumbnailProvider();
  
          assertNotNull(itp.getThumbnail(imageFile));
          assertArrayEquals(IOUtils.toByteArray(getClass().getClassLoader().getResourceAsStream("apache.png")),
                  IOUtils.toByteArray(itp.getThumbnail(imageFile)));
      }
test_case.class_method_signature: ImageThumbnailProviderTest.testImageThumbnailProvider()
test_case.full_signature: @Test public void testImageThumbnailProvider()
test_case.identifier: testImageThumbnailProvider
test_case.invocations: info assertNotNull getThumbnail assertArrayEquals toByteArray getResourceAsStream getClassLoader getClass toByteArray getThumbnail
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testImageThumbnailProvider()
focal_class.file: transformer/src/main/java/org/apache/sling/cms/transformer/internal/ImageThumbnailProvider.java
focal_class.identifier: ImageThumbnailProvider
focal_class.interfaces: implements ThumbnailProvider
focal_class.class_method_signature: ImageThumbnailProvider.applies(Resource resource)
focal_class.full_signature: @Override public boolean applies(Resource resource)
focal_class.identifier: applies
focal_class.modifiers: @Override public
focal_class.parameters: (Resource resource)
focal_class.return: boolean
focal_class.signature: boolean applies(Resource resource)
focal_class.class_method_signature: ImageThumbnailProvider.getThumbnail(Resource resource)
focal_class.full_signature: @Override public InputStream getThumbnail(Resource resource)
focal_class.identifier: getThumbnail
focal_class.modifiers: @Override public
focal_class.parameters: (Resource resource)
focal_class.return: InputStream
focal_class.signature: InputStream getThumbnail(Resource resource)
focal_method.body: @Override
      public InputStream getThumbnail(Resource resource) {
          return resource.adaptTo(InputStream.class);
      }
focal_method.class_method_signature: ImageThumbnailProvider.getThumbnail(Resource resource)
focal_method.full_signature: @Override public InputStream getThumbnail(Resource resource)
focal_method.identifier: getThumbnail
focal_method.invocations: adaptTo
focal_method.modifiers: @Override public
focal_method.parameters: (Resource resource)
focal_method.return: InputStream
focal_method.signature: InputStream getThumbnail(Resource resource)