Exemple #1
0
 public void withRealmGroupTest() {
   Group g = new Group(1L, "g1", "group description", true, "ldap", "dn=o");
   assertEquals(g.getGroupId(), 1L);
   assertEquals(g.getGroupName(), "g1");
   assertEquals(g.getDescription(), "group description");
   assertTrue(g.isNewUserDefault());
   assertEquals(g.getRealm(), "ldap");
   assertEquals(g.getRealmAttributes(), "dn=o");
 }
Exemple #2
0
 public void simpleGroupTest() {
   Group g = new Group(1L, "g1", null, false, null, null);
   assertEquals(g.getGroupId(), 1L);
   assertEquals(g.getGroupName(), "g1");
   assertNull(g.getDescription());
   assertFalse(g.isNewUserDefault());
   assertNull(g.getRealm());
   assertNull(g.getRealmAttributes());
 }