Пример #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());
 }