test_class.file: api/src/test/java/org/apache/sling/cms/publication/IsPublishableResourceContainerTest.java
test_class.identifier: IsPublishableResourceContainerTest
test_case.body: @Test
      public void testTypes(){
          IsPublishableResourceContainer predicate = new IsPublishableResourceContainer();
          Resource folder = mockResource(JcrConstants.NT_FOLDER);
          Resource slingFolder = mockResource(JcrResourceConstants.NT_SLING_FOLDER);
          Resource orderedFolder = mockResource(JcrResourceConstants.NT_SLING_ORDERED_FOLDER);
          Resource slingFile = mockResource(CMSConstants.NT_FILE);
          Resource site = mockResource(CMSConstants.NT_SITE);
          Resource page = mockResource(CMSConstants.NT_PAGE);
          Resource config = mockResource(CMSConstants.NT_CONFIG);
          Resource component = mockResource("a/resource/type");
  
  
          assertFalse(predicate.test(null));
          assertFalse(predicate.test(folder));
          assertTrue(predicate.test(slingFolder));
          assertTrue(predicate.test(orderedFolder));
          assertTrue(predicate.test(slingFile));
          assertTrue(predicate.test(site));
          assertTrue(predicate.test(page));
          assertFalse(predicate.test(config));
          assertFalse(predicate.test(component));
      }
test_case.class_method_signature: IsPublishableResourceContainerTest.testTypes()
test_case.full_signature: @Test public void testTypes()
test_case.identifier: testTypes
test_case.invocations: mockResource mockResource mockResource mockResource mockResource mockResource mockResource mockResource assertFalse test assertFalse test assertTrue test assertTrue test assertTrue test assertTrue test assertTrue test assertFalse test assertFalse test
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testTypes()
focal_class.file: api/src/main/java/org/apache/sling/cms/publication/IsPublishableResourceContainer.java
focal_class.identifier: IsPublishableResourceContainer
focal_class.interfaces: implements Predicate<Resource>
focal_class.class_method_signature: IsPublishableResourceContainer.test(Resource r)
focal_class.full_signature: @Override public boolean test(Resource r)
focal_class.identifier: test
focal_class.modifiers: @Override public
focal_class.parameters: (Resource r)
focal_class.return: boolean
focal_class.signature: boolean test(Resource r)
focal_method.body: @Override
      public boolean test(Resource r) {
          return Optional.ofNullable(r).map(Resource::getResourceType)
                  .map(rt -> JcrResourceConstants.NT_SLING_FOLDER.equals(rt)
                          || JcrResourceConstants.NT_SLING_ORDERED_FOLDER.equals(rt) || CMSConstants.NT_FILE.equals(rt)
                          || CMSConstants.NT_SITE.equals(rt) || CMSConstants.NT_PAGE.equals(rt))
                  .orElse(false);
      }
focal_method.class_method_signature: IsPublishableResourceContainer.test(Resource r)
focal_method.full_signature: @Override public boolean test(Resource r)
focal_method.identifier: test
focal_method.invocations: orElse map map ofNullable equals equals equals equals equals
focal_method.modifiers: @Override public
focal_method.parameters: (Resource r)
focal_method.return: boolean
focal_method.signature: boolean test(Resource r)