test_class.declarator: log = LoggerFactory.getLogger(SlideShowThumbnailProviderTest.class)
test_class.modifier: private static final
test_class.original_string: private static final Logger log = LoggerFactory.getLogger(SlideShowThumbnailProviderTest.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: docxFile
test_class.modifier: private
test_class.original_string: private Resource docxFile;
test_class.type: Resource
test_class.var_name: docxFile
test_class.declarator: pptFile
test_class.modifier: private
test_class.original_string: private Resource pptFile;
test_class.type: Resource
test_class.var_name: pptFile
test_class.declarator: pptxFile
test_class.modifier: private
test_class.original_string: private Resource pptxFile;
test_class.type: Resource
test_class.var_name: pptxFile
test_class.declarator: provider
test_class.modifier: private
test_class.original_string: private ThumbnailProvider provider;
test_class.type: ThumbnailProvider
test_class.var_name: provider
test_class.file: transformer/src/test/java/org/apache/sling/cms/transformer/internal/SlideShowThumbnailProviderTest.java
test_class.identifier: SlideShowThumbnailProviderTest
test_case.body: @Test
      public void testApplies() throws IOException {
          log.info("testApplies");
          assertTrue(provider.applies(pptxFile));
          assertTrue(provider.applies(pptFile));
          assertFalse(provider.applies(docxFile));
      }
test_case.class_method_signature: SlideShowThumbnailProviderTest.testApplies()
test_case.full_signature: @Test public void testApplies()
test_case.identifier: testApplies
test_case.invocations: info assertTrue applies assertTrue applies assertFalse applies
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testApplies()
focal_class.declarator: dclm
focal_class.modifier: @Reference
      private
focal_class.original_string: @Reference
      private DynamicClassLoaderManager dclm;
focal_class.type: DynamicClassLoaderManager
focal_class.var_name: dclm
focal_class.file: transformer/src/main/java/org/apache/sling/cms/transformer/internal/SlideShowThumbnailProvider.java
focal_class.identifier: SlideShowThumbnailProvider
focal_class.interfaces: implements ThumbnailProvider
focal_class.class_method_signature: SlideShowThumbnailProvider.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: SlideShowThumbnailProvider.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 boolean applies(Resource resource) {
          return (CMSConstants.NT_FILE.equals(resource.getResourceType())
                  || JcrConstants.NT_FILE.equals(resource.getResourceType()))
                  && Optional.ofNullable(resource.adaptTo(File.class)).map(f -> {
                      MediaType mt = MediaType.parse(f.getContentType());
                      return mt.is(MediaType.MICROSOFT_POWERPOINT) || mt.is(MediaType.OOXML_PRESENTATION);
                  }).orElse(false);
      }
focal_method.class_method_signature: SlideShowThumbnailProvider.applies(Resource resource)
focal_method.full_signature: @Override public boolean applies(Resource resource)
focal_method.identifier: applies
focal_method.invocations: equals getResourceType equals getResourceType orElse map ofNullable adaptTo parse getContentType is is
focal_method.modifiers: @Override public
focal_method.parameters: (Resource resource)
focal_method.return: boolean
focal_method.signature: boolean applies(Resource resource)