예제 #1
0
 @Test
 public void testListUsers() throws Exception {
   assertNull(action.getUsers());
   assertEquals("success", action.list());
   assertNotNull(action.getUsers());
   assertFalse(action.hasActionErrors());
 }
예제 #2
0
 @Test
 public void testSearch() throws Exception {
   compassGps.index();
   action.setQ("admin");
   assertEquals("success", action.list());
   assertNotNull(action.getUsers());
   assertTrue(action.getUsers().size() >= 1);
   assertFalse(action.hasActionErrors());
 }