HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2012-07-18 fd7e4db28f9fbc06f4fc55567f621c89dd52e3b2
xmlrpc uses Array not List
1 files modified
8 ■■■■■ changed files
hsarback/test/de/hsadmin/remote/DomainTest.java 8 ●●●●● patch | view | raw | blame | history
hsarback/test/de/hsadmin/remote/DomainTest.java
@@ -252,13 +252,11 @@
            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());