xmlrpc uses Array not List
This commit is contained in:
parent
7fcbc91980
commit
fd7e4db28f
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user