test_class.declarator: rea
test_class.modifier: private
test_class.original_string: private ResourceEditorAssociation rea;
test_class.type: ResourceEditorAssociation
test_class.var_name: rea
test_class.file: core/src/test/java/org/apache/sling/cms/core/internal/ResourceEditorAssociationTest.java
test_class.identifier: ResourceEditorAssociationTest
test_case.body: @Test
      public void testNonMatchingType() {
          Resource matching = Mockito.mock(Resource.class);
          Mockito.when(matching.getPath()).thenReturn("/content/sling-adobe-org");
          Mockito.when(matching.getResourceType()).thenReturn(CMSConstants.NT_PAGE);
  
          assertFalse(rea.matches(matching));
      }
test_case.class_method_signature: ResourceEditorAssociationTest.testNonMatchingType()
test_case.full_signature: @Test public void testNonMatchingType()
test_case.identifier: testNonMatchingType
test_case.invocations: mock thenReturn when getPath thenReturn when getResourceType assertFalse matches
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testNonMatchingType()
focal_class.declarator: pathPattern
focal_class.modifier: private
focal_class.original_string: private Pattern pathPattern;
focal_class.type: Pattern
focal_class.var_name: pathPattern
focal_class.declarator: editor
focal_class.modifier: private
focal_class.original_string: private String editor;
focal_class.type: String
focal_class.var_name: editor
focal_class.declarator: resourceType
focal_class.modifier: private
focal_class.original_string: private String resourceType;
focal_class.type: String
focal_class.var_name: resourceType
focal_class.declarator: parentType
focal_class.modifier: private
focal_class.original_string: private String parentType;
focal_class.type: String
focal_class.var_name: parentType
focal_class.file: core/src/main/java/org/apache/sling/cms/core/internal/ResourceEditorAssociation.java
focal_class.identifier: ResourceEditorAssociation
focal_class.class_method_signature: ResourceEditorAssociation.activate(ResourceEditorAssociationConfig config)
focal_class.full_signature: @Activate public void activate(ResourceEditorAssociationConfig config)
focal_class.identifier: activate
focal_class.modifiers: @Activate public
focal_class.parameters: (ResourceEditorAssociationConfig config)
focal_class.return: void
focal_class.signature: void activate(ResourceEditorAssociationConfig config)
focal_class.class_method_signature: ResourceEditorAssociation.matches(Resource resource)
focal_class.full_signature: public boolean matches(Resource resource)
focal_class.identifier: matches
focal_class.modifiers: public
focal_class.parameters: (Resource resource)
focal_class.return: boolean
focal_class.signature: boolean matches(Resource resource)
focal_class.class_method_signature: ResourceEditorAssociation.hasParentType(Resource resource)
focal_class.full_signature: private boolean hasParentType(Resource resource)
focal_class.identifier: hasParentType
focal_class.modifiers: private
focal_class.parameters: (Resource resource)
focal_class.return: boolean
focal_class.signature: boolean hasParentType(Resource resource)
focal_class.class_method_signature: ResourceEditorAssociation.getEditor()
focal_class.full_signature: public String getEditor()
focal_class.identifier: getEditor
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getEditor()
focal_class.class_method_signature: ResourceEditorAssociation.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_method.body: public boolean matches(Resource resource) {
          if (StringUtils.isNotBlank(parentType) && !hasParentType(resource)) {
              return false;
          }
          if (StringUtils.isNotBlank(resourceType) && !resourceType.equals(resource.getResourceType())) {
              return false;
          }
          return pathPattern.matcher(resource.getPath()).matches();
      }
focal_method.class_method_signature: ResourceEditorAssociation.matches(Resource resource)
focal_method.full_signature: public boolean matches(Resource resource)
focal_method.identifier: matches
focal_method.invocations: isNotBlank hasParentType isNotBlank equals getResourceType matches matcher getPath
focal_method.modifiers: public
focal_method.parameters: (Resource resource)
focal_method.return: boolean
focal_method.signature: boolean matches(Resource resource)