Ejemplo n.º 1
0
 @Test
 public void testGroupLoad() {
   LdapGroup group = (LdapGroup) HELPER.getGroup(HELPER.getAdminGroupIdentifiyer());
   group.debug();
   LOG.log(Level.INFO, "\nmembers: {0}\n", group.get(HELPER.getGroupMemberAttribut()));
   assertFalse(group.isNew());
   assertFalse(group.isEmpty());
 }
Ejemplo n.º 2
0
 @Test
 public void testDeleteGroup() throws Exception {
   LdapGroup g1 = Utils.createTestGroup(CN);
   try {
     if (HELPER.rmGroup(g1)) {
       LOG.log(Level.INFO, "deleted Group {0}", CN);
     }
   } catch (Exception ex) {
     LOG.log(Level.SEVERE, "setGroup fails", ex);
   }
   g1 = (LdapGroup) HELPER.getGroup(CN);
   assertTrue(g1.isEmpty());
 }