From f27e744cd207f9eff19d5f94dd8bf6f37271fe04 Mon Sep 17 00:00:00 2001 From: Purodha Blissenbach Date: Wed, 18 Jul 2012 13:31:58 +0000 Subject: [PATCH] =?UTF-8?q?Test=20auf=20Null=20Domainoptionen=20zugef?= =?UTF-8?q?=C3=BCgt.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../test/de/hsadmin/remote/DomainTest.java | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/hsarback/test/de/hsadmin/remote/DomainTest.java b/hsarback/test/de/hsadmin/remote/DomainTest.java index 3823eb5..700591f 100644 --- a/hsarback/test/de/hsadmin/remote/DomainTest.java +++ b/hsarback/test/de/hsadmin/remote/DomainTest.java @@ -191,6 +191,28 @@ public class DomainTest { } } + @Test + public void testZeroOptions() { + String user = "aaa00"; + String grantingTicketURL = cas.getGrantingTicketURL(user); + Map setParams = new HashMap(); + Map whereParams = new HashMap(); + setParams.put("user", "aaa00"); + List optionslist = new ArrayList(); + setParams.put("domainoptions", optionslist); + whereParams.put("name", "example01.org"); + Object[] params = new Object[] { user, + cas.getServiceTicket(grantingTicketURL, RemoteTestHelper.getBackendURL()), + setParams, whereParams }; + try { + Object execute = client.execute(MODULE + ".update", params); + assertNotNull(execute); + assertEquals(getDomOptionsCount(),0); + } catch (XmlRpcException e) { + fail(e.getMessage()); + } + } + private int getDomsCount() { int count = 0; String user = "aaa00";