@Test public void testListUsers() throws Exception { assertNull(action.getUsers()); assertEquals("success", action.list()); assertNotNull(action.getUsers()); assertFalse(action.hasActionErrors()); }
@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()); }