fix DomainTest
This commit is contained in:
parent
a78ddfc29a
commit
439389ea28
@ -168,7 +168,7 @@ public class DomainTest {
|
|||||||
try {
|
try {
|
||||||
Object execute = client.execute(MODULE + ".update", params);
|
Object execute = client.execute(MODULE + ".update", params);
|
||||||
assertNotNull(execute);
|
assertNotNull(execute);
|
||||||
assertEquals(getDomOptionsCount(),1);
|
assertEquals(getDomOptionsCount(), 1);
|
||||||
} catch (XmlRpcException e) {
|
} catch (XmlRpcException e) {
|
||||||
fail(e.getMessage());
|
fail(e.getMessage());
|
||||||
}
|
}
|
||||||
@ -253,7 +253,9 @@ public class DomainTest {
|
|||||||
Map<String, ?> domainMap = (Map<String, ?>) result[0];
|
Map<String, ?> domainMap = (Map<String, ?>) result[0];
|
||||||
assertNotNull(domainMap);
|
assertNotNull(domainMap);
|
||||||
List<?> optsList = (List<?>)domainMap.get("domainsoptions");
|
List<?> optsList = (List<?>)domainMap.get("domainsoptions");
|
||||||
assertNotNull(optsList);
|
if (optsList == null) {
|
||||||
|
count = 0;
|
||||||
|
}
|
||||||
count = optsList.size();
|
count = optsList.size();
|
||||||
} catch (XmlRpcException e) {
|
} catch (XmlRpcException e) {
|
||||||
fail(e.getMessage());
|
fail(e.getMessage());
|
||||||
|
Loading…
Reference in New Issue
Block a user