From aaa278a84981456ba75ec55112f2c1fcc800b5b8 Mon Sep 17 00:00:00 2001 From: Peter Hormanns Date: Wed, 18 Jul 2012 14:49:31 +0000 Subject: [PATCH] dont change dom-admin --- hsarback/test/de/hsadmin/remote/DomainTest.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hsarback/test/de/hsadmin/remote/DomainTest.java b/hsarback/test/de/hsadmin/remote/DomainTest.java index 700591f..5eebf2a 100644 --- a/hsarback/test/de/hsadmin/remote/DomainTest.java +++ b/hsarback/test/de/hsadmin/remote/DomainTest.java @@ -127,7 +127,7 @@ public class DomainTest { String grantingTicketURL = cas.getGrantingTicketURL(user); Map setParams = new HashMap(); Map whereParams = new HashMap(); - setParams.put("user", "aaa00"); +// setParams.put("user", "aaa00"); List optionslist = new ArrayList(); optionslist.add("invalide"); setParams.put("domainoptions", optionslist); @@ -150,7 +150,7 @@ public class DomainTest { String grantingTicketURL = cas.getGrantingTicketURL(user); Map setParams = new HashMap(); Map whereParams = new HashMap(); - setParams.put("user", "aaa00"); +// setParams.put("user", "aaa00"); List optionslist = new ArrayList(); optionslist.add("graylisting"); setParams.put("domainoptions", optionslist); @@ -173,7 +173,7 @@ public class DomainTest { String grantingTicketURL = cas.getGrantingTicketURL(user); Map setParams = new HashMap(); Map whereParams = new HashMap(); - setParams.put("user", "aaa00"); +// setParams.put("user", "aaa00"); List optionslist = new ArrayList(); 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 domainMap = (Map) result[0]; assertNotNull(domainMap); List optsList = (List)domainMap.get("domainsoptions");