@Test(expected = ListenerReadOnlyException.class) public void testROCreateGroupPrincipal2() throws Exception { UserManager delegate = mock(UserManager.class); UserManagerFacade facade = getFacade(delegate); facade.createGroup(EveryonePrincipal.getInstance(), ""); }
@Override public Group createGroup(final String groupID) throws RepositoryException { throw new ListenerReadOnlyException(); }
UserManagerFacade implements UserManager { @Override public Group createGroup(final String groupID) throws RepositoryException { throw new ListenerReadOnlyException(); } }
UserManagerFacade implements UserManager { @Override public Group createGroup(final String groupID) throws RepositoryException { throw new ListenerReadOnlyException(); } UserManagerFacade(final @NotNull UserManager delegate); }
UserManagerFacade implements UserManager { @Override public Group createGroup(final String groupID) throws RepositoryException { throw new ListenerReadOnlyException(); } UserManagerFacade(final @NotNull UserManager delegate); @Override boolean isAutoSave(); @Override Authorizable getAuthorizable(final String id); @Override T getAuthorizable(final String id, final Class<T> authorizableClass); @Override Authorizable getAuthorizable(final Principal principal); @Override Authorizable getAuthorizableByPath(final String path); @Override Iterator<Authorizable> findAuthorizables(final String relPath, final String value); @Override Iterator<Authorizable> findAuthorizables(final String relPath, final String value, final int searchType); @Override Iterator<Authorizable> findAuthorizables(final Query query); @Override User createUser(final String userID, final String password); @Override User createUser(final String userID, final String password, final Principal principal, final String intermediatePath); @Override User createSystemUser(final String userID, final String intermediatePath); @Override Group createGroup(final String groupID); @Override Group createGroup(final Principal principal); @Override Group createGroup(final Principal principal, final String intermediatePath); @Override Group createGroup(final String groupID, final Principal principal, final String intermediatePath); @Override void autoSave(final boolean enable); }
UserManagerFacade implements UserManager { @Override public Group createGroup(final String groupID) throws RepositoryException { throw new ListenerReadOnlyException(); } UserManagerFacade(final @NotNull UserManager delegate); @Override boolean isAutoSave(); @Override Authorizable getAuthorizable(final String id); @Override T getAuthorizable(final String id, final Class<T> authorizableClass); @Override Authorizable getAuthorizable(final Principal principal); @Override Authorizable getAuthorizableByPath(final String path); @Override Iterator<Authorizable> findAuthorizables(final String relPath, final String value); @Override Iterator<Authorizable> findAuthorizables(final String relPath, final String value, final int searchType); @Override Iterator<Authorizable> findAuthorizables(final Query query); @Override User createUser(final String userID, final String password); @Override User createUser(final String userID, final String password, final Principal principal, final String intermediatePath); @Override User createSystemUser(final String userID, final String intermediatePath); @Override Group createGroup(final String groupID); @Override Group createGroup(final Principal principal); @Override Group createGroup(final Principal principal, final String intermediatePath); @Override Group createGroup(final String groupID, final Principal principal, final String intermediatePath); @Override void autoSave(final boolean enable);  }