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<?, ?>);
|
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());
|
||||||
|
Loading…
Reference in New Issue
Block a user