예제 #1
0
 @Test
 public void canAddGroups() throws Exception {
   bootstrap.setGroups("org1.dev,org1.qa,org1.engg,org1.mgr,org1.hr");
   bootstrap.afterPropertiesSet();
   assertEquals(5, gDB.retrieveAll().size());
   assertNotNull(bootstrap.getGroup("org1.dev"));
   assertNotNull(bootstrap.getGroup("org1.qa"));
   assertNotNull(bootstrap.getGroup("org1.engg"));
   assertNotNull(bootstrap.getGroup("org1.mgr"));
   assertNotNull(bootstrap.getGroup("org1.hr"));
 }
예제 #2
0
 @Test
 public void testNullGroups() throws Exception {
   bootstrap.setGroups(null);
   bootstrap.afterPropertiesSet();
   assertEquals(0, gDB.retrieveAll().size());
 }