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<?, ?>); assertTrue(result[0] instanceof Map<?, ?>);
Map<String, ?> domainMap = (Map<String, ?>) result[0]; Map<String, ?> domainMap = (Map<String, ?>) result[0];
assertNotNull(domainMap); assertNotNull(domainMap);
List<?> optsList = (List<?>)domainMap.get("domainoptions"); Object[] optsList = (Object[])domainMap.get("domainoptions");
if (optsList == null) { if (optsList == null) {
count = 0; count = 0;
} } else {
else count = optsList.length;
{
count = optsList.size();
} }
} catch (XmlRpcException e) { } catch (XmlRpcException e) {
fail(e.getMessage()); fail(e.getMessage());