xmlrpc uses Array not List

This commit is contained in:
Peter Hormanns 2012-07-18 18:41:25 +00:00
parent 7fcbc91980
commit fd7e4db28f

View File

@ -252,13 +252,11 @@ public class DomainTest {
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());