dont change dom-admin

This commit is contained in:
Peter Hormanns 2012-07-18 14:49:31 +00:00
parent 17e149eb26
commit aaa278a849

View File

@ -127,7 +127,7 @@ public class DomainTest {
String grantingTicketURL = cas.getGrantingTicketURL(user);
Map<String, Object> setParams = new HashMap<String, Object>();
Map<String, String> whereParams = new HashMap<String, String>();
setParams.put("user", "aaa00");
// setParams.put("user", "aaa00");
List<String> optionslist = new ArrayList<String>();
optionslist.add("invalide");
setParams.put("domainoptions", optionslist);
@ -150,7 +150,7 @@ public class DomainTest {
String grantingTicketURL = cas.getGrantingTicketURL(user);
Map<String, Object> setParams = new HashMap<String, Object>();
Map<String, String> whereParams = new HashMap<String, String>();
setParams.put("user", "aaa00");
// setParams.put("user", "aaa00");
List<String> optionslist = new ArrayList<String>();
optionslist.add("graylisting");
setParams.put("domainoptions", optionslist);
@ -173,7 +173,7 @@ public class DomainTest {
String grantingTicketURL = cas.getGrantingTicketURL(user);
Map<String, Object> setParams = new HashMap<String, Object>();
Map<String, String> whereParams = new HashMap<String, String>();
setParams.put("user", "aaa00");
// setParams.put("user", "aaa00");
List<String> optionslist = new ArrayList<String>();
optionslist.add("htdocsfallback");
optionslist.add("graylisting");
@ -244,6 +244,7 @@ public class DomainTest {
Object execute = client.execute(MODULE + ".search", params);
Object[] result = (Object[]) execute;
assertEquals(result.length, 1);
assertTrue(result[0] instanceof Map<?, ?>);
Map<String, ?> domainMap = (Map<String, ?>) result[0];
assertNotNull(domainMap);
List<?> optsList = (List<?>)domainMap.get("domainsoptions");