test_class.declarator: action = new ClearMembershipAction()
test_class.modifier: private final
test_class.original_string: private final ClearMembershipAction action = new ClearMembershipAction();
test_class.type: ClearMembershipAction
test_class.var_name: action
test_class.declarator: root = Mockito.mock(Root.class)
test_class.modifier: private final
test_class.original_string: private final Root root = Mockito.mock(Root.class);
test_class.type: Root
test_class.var_name: root
test_class.declarator: securityProvider = Mockito.mock(SecurityProvider.class)
test_class.modifier: private final
test_class.original_string: private final SecurityProvider securityProvider = Mockito.mock(SecurityProvider.class);
test_class.type: SecurityProvider
test_class.var_name: securityProvider
test_class.declarator: userManager = Mockito.mock(UserManager.class)
test_class.modifier: private final
test_class.original_string: private final UserManager userManager = Mockito.mock(UserManager.class);
test_class.type: UserManager
test_class.var_name: userManager
test_class.declarator: userConfiguration = Mockito.mock(UserConfiguration.class)
test_class.modifier: private final
test_class.original_string: private final UserConfiguration userConfiguration = Mockito.mock(UserConfiguration.class);
test_class.type: UserConfiguration
test_class.var_name: userConfiguration
test_class.declarator: user = Mockito.mock(User.class)
test_class.modifier: private final
test_class.original_string: private final User user = Mockito.mock(User.class);
test_class.type: User
test_class.var_name: user
test_class.declarator: gr = new TestGroup()
test_class.modifier: private final
test_class.original_string: private final TestGroup gr = new TestGroup();
test_class.type: TestGroup
test_class.var_name: gr
test_class.file: oak-security-spi/src/test/java/org/apache/jackrabbit/oak/spi/security/user/action/ClearMembershipActionTest.java
test_class.identifier: ClearMembershipActionTest
test_case.body: @Test
      public void testOnRemoveUserNoMembership() throws Exception {
          when(user.declaredMemberOf()).thenReturn(Collections.emptyIterator());
          action.onRemove(user, root, NamePathMapper.DEFAULT);
      }
test_case.class_method_signature: ClearMembershipActionTest.testOnRemoveUserNoMembership()
test_case.full_signature: @Test public void testOnRemoveUserNoMembership()
test_case.identifier: testOnRemoveUserNoMembership
test_case.invocations: thenReturn when declaredMemberOf emptyIterator onRemove
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testOnRemoveUserNoMembership()
focal_class.file: oak-security-spi/src/main/java/org/apache/jackrabbit/oak/spi/security/user/action/ClearMembershipAction.java
focal_class.identifier: ClearMembershipAction
focal_class.class_method_signature: ClearMembershipAction.onRemove(@NotNull Authorizable authorizable, @NotNull Root root, @NotNull NamePathMapper namePathMapper)
focal_class.full_signature: @Override public void onRemove(@NotNull Authorizable authorizable, @NotNull Root root, @NotNull NamePathMapper namePathMapper)
focal_class.identifier: onRemove
focal_class.modifiers: @Override public
focal_class.parameters: (@NotNull Authorizable authorizable, @NotNull Root root, @NotNull NamePathMapper namePathMapper)
focal_class.return: void
focal_class.signature: void onRemove(@NotNull Authorizable authorizable, @NotNull Root root, @NotNull NamePathMapper namePathMapper)
focal_class.class_method_signature: ClearMembershipAction.clearMembership(Authorizable authorizable)
focal_class.full_signature: private static void clearMembership(Authorizable authorizable)
focal_class.identifier: clearMembership
focal_class.modifiers: private static
focal_class.parameters: (Authorizable authorizable)
focal_class.return: void
focal_class.signature: void clearMembership(Authorizable authorizable)
focal_class.superclass: extends AbstractAuthorizableAction
focal_method.body: @Override
      public void onRemove(@NotNull Authorizable authorizable, @NotNull Root root, @NotNull NamePathMapper namePathMapper) throws RepositoryException {
          clearMembership(authorizable);
      }
focal_method.class_method_signature: ClearMembershipAction.onRemove(@NotNull Authorizable authorizable, @NotNull Root root, @NotNull NamePathMapper namePathMapper)
focal_method.full_signature: @Override public void onRemove(@NotNull Authorizable authorizable, @NotNull Root root, @NotNull NamePathMapper namePathMapper)
focal_method.identifier: onRemove
focal_method.invocations: clearMembership
focal_method.modifiers: @Override public
focal_method.parameters: (@NotNull Authorizable authorizable, @NotNull Root root, @NotNull NamePathMapper namePathMapper)
focal_method.return: void
focal_method.signature: void onRemove(@NotNull Authorizable authorizable, @NotNull Root root, @NotNull NamePathMapper namePathMapper)