| | |
| | | try { |
| | | Object execute = client.execute(MODULE + ".update", params); |
| | | assertNotNull(execute); |
| | | assertEquals(getDomOptionsCount(), 1); |
| | | assertEquals(1, getDomOptionsCount()); |
| | | } catch (XmlRpcException e) { |
| | | fail(e.getMessage()); |
| | | } |
| | |
| | | try { |
| | | Object execute = client.execute(MODULE + ".update", params); |
| | | assertNotNull(execute); |
| | | assertEquals(getDomOptionsCount(),2); |
| | | assertEquals(2, getDomOptionsCount()); |
| | | } catch (XmlRpcException e) { |
| | | fail(e.getMessage()); |
| | | } |
| | |
| | | try { |
| | | Object execute = client.execute(MODULE + ".update", params); |
| | | assertNotNull(execute); |
| | | assertEquals(getDomOptionsCount(),0); |
| | | assertEquals(0, getDomOptionsCount()); |
| | | } catch (XmlRpcException e) { |
| | | fail(e.getMessage()); |
| | | } |
| | |
| | | assertTrue(result[0] instanceof Map<?, ?>); |
| | | Map<String, ?> domainMap = (Map<String, ?>) result[0]; |
| | | assertNotNull(domainMap); |
| | | List<?> optsList = (List<?>)domainMap.get("domainsoptions"); |
| | | List<?> optsList = (List<?>)domainMap.get("domainoptions"); |
| | | if (optsList == null) { |
| | | count = 0; |
| | | } |