fix error in typecast

This commit is contained in:
Peter Hormanns 2012-07-18 12:31:15 +00:00
parent 93a4c560ab
commit 6f5a91a3c0

View File

@ -223,7 +223,7 @@ public class DomainTest {
try { try {
Object execute = client.execute(MODULE + ".search", params); Object execute = client.execute(MODULE + ".search", params);
Object[] result = (Object[]) execute; Object[] result = (Object[]) execute;
count = ( (Domain) result[0] ).getDomainOptions().size(); count = ((List<?>)((Map<String, ?>) result[0]).get("domainsoptions")).size();
} catch (XmlRpcException e) { } catch (XmlRpcException e) {
fail(e.getMessage()); fail(e.getMessage());
} }