From fd7e4db28f9fbc06f4fc55567f621c89dd52e3b2 Mon Sep 17 00:00:00 2001
From: Peter Hormanns <peter.hormanns@hostsharing.net>
Date: Wed, 18 Jul 2012 20:41:25 +0200
Subject: [PATCH] xmlrpc uses Array not List

---
 hsarback/test/de/hsadmin/remote/DomainTest.java |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/hsarback/test/de/hsadmin/remote/DomainTest.java b/hsarback/test/de/hsadmin/remote/DomainTest.java
index e5f89e3..326cedb 100644
--- a/hsarback/test/de/hsadmin/remote/DomainTest.java
+++ b/hsarback/test/de/hsadmin/remote/DomainTest.java
@@ -252,13 +252,11 @@
 			assertTrue(result[0] instanceof Map<?, ?>);
 			Map<String, ?> domainMap = (Map<String, ?>) result[0];
 			assertNotNull(domainMap);
-			List<?> optsList = (List<?>)domainMap.get("domainoptions");
+			Object[] optsList = (Object[])domainMap.get("domainoptions");
 			if (optsList == null) {
 				count = 0;
-			}
-			else
-			{
-				count = optsList.size();
+			} else {
+				count = optsList.length;
 			}
 		} catch (XmlRpcException e) {
 			fail(e.getMessage());

--
Gitblit v1.9.0-SNAPSHOT