| | |
| | | } |
| | | |
| | | @Test |
| | | public void test1SearchAllAsPacAdmin() { |
| | | public void testSearchAllAsPacAdmin() { |
| | | String user = "aaa00"; |
| | | String grantingTicketURL = cas.getGrantingTicketURL(user); |
| | | Map<String, String> whereParams = new HashMap<String, String>(); |
| | |
| | | try { |
| | | Object execute = client.execute(MODULE + ".search", params); |
| | | Object[] result = (Object[]) execute; |
| | | assertEquals(3, result.length); |
| | | assertTrue(3 <= result.length); |
| | | for (Object o : result) { |
| | | if (o instanceof Map<?, ?>) { |
| | | Map<?, ?> row = (Map<?, ?>) o; |
| | |
| | | } |
| | | |
| | | @Test |
| | | public void test2Update() { |
| | | public void testUpdate() { |
| | | String user = "aaa00"; |
| | | String grantingTicketURL = cas.getGrantingTicketURL(user); |
| | | Map<String, String> setParams = new HashMap<String, String>(); |
| | |
| | | } |
| | | |
| | | @Test |
| | | public void test3Create() throws UnknownHostException, IOException { |
| | | public void testCreate() throws UnknownHostException, IOException { |
| | | int count = getDomsCount(); |
| | | String user = "aaa00"; |
| | | String grantingTicketURL = cas.getGrantingTicketURL(user); |
| | |
| | | } |
| | | |
| | | @Test |
| | | public void test4CreateForeignSubdomain() throws UnknownHostException, IOException { |
| | | public void testCreateForeignSubdomain() throws UnknownHostException, IOException { |
| | | int count = getDomsCount(); |
| | | String user = "aaa00"; |
| | | String grantingTicketURL = cas.getGrantingTicketURL(user); |