public void testGroupGetPrincipalNotNull() throws RepositoryException, NotExecutableException { Group gr = getTestGroup(superuser); assertNotNull(gr.getPrincipal()); }
public void testGetId() throws NotExecutableException, RepositoryException { User user = getTestUser(superuser); assertNotNull(user.getID()); }
public void testGroupGetId() throws NotExecutableException, RepositoryException { Group gr = getTestGroup(superuser); assertNotNull(gr.getID()); }
public void testGetPrincipalNotNull() throws RepositoryException, NotExecutableException { User user = getTestUser(superuser); assertNotNull(user.getPrincipal()); }
assertNotNull(auth.getProperty(rp)); assertNotNull(auth.getProperty(rp));
public void testGetPropertyNames() throws NotExecutableException, RepositoryException { Authorizable auth = getTestUser(superuser); // TODO: retrieve propname and value from config String propName = "Fullname"; Value v = superuser.getValueFactory().createValue("Super User"); try { auth.setProperty(propName, v); save(superuser); } catch (RepositoryException e) { throw new NotExecutableException("Cannot test 'Authorizable.setProperty'."); } try { for (Iterator<String> it = auth.getPropertyNames(); it.hasNext();) { String name = it.next(); assertTrue(auth.hasProperty(name)); assertNotNull(auth.getProperty(name)); } } finally { // try to remove the property again even if previous calls failed. auth.removeProperty(propName); save(superuser); } }
assertNotNull(umgr.getAuthorizable(id)); assertNotNull(userMgr.getAuthorizable(id));