From 439389ea2800bbdd96a81ce73a52e40a41d48af3 Mon Sep 17 00:00:00 2001
From: Peter Hormanns <peter.hormanns@hostsharing.net>
Date: Wed, 18 Jul 2012 19:28:47 +0200
Subject: [PATCH] fix DomainTest

---
 hsarback/test/de/hsadmin/remote/DomainTest.java |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/hsarback/test/de/hsadmin/remote/DomainTest.java b/hsarback/test/de/hsadmin/remote/DomainTest.java
index 135f998..af69243 100644
--- a/hsarback/test/de/hsadmin/remote/DomainTest.java
+++ b/hsarback/test/de/hsadmin/remote/DomainTest.java
@@ -168,7 +168,7 @@
 		try {
 			Object execute = client.execute(MODULE + ".update", params);
 			assertNotNull(execute);
-			assertEquals(getDomOptionsCount(),1);
+			assertEquals(getDomOptionsCount(), 1);
 		} catch (XmlRpcException e) {
 			fail(e.getMessage());
 		}
@@ -253,7 +253,9 @@
 			Map<String, ?> domainMap = (Map<String, ?>) result[0];
 			assertNotNull(domainMap);
 			List<?> optsList = (List<?>)domainMap.get("domainsoptions");
-			assertNotNull(optsList);
+			if (optsList == null) {
+				count = 0;
+			}
 			count = optsList.size();
 		} catch (XmlRpcException e) {
 			fail(e.getMessage());

--
Gitblit v1.9.0-SNAPSHOT