HSAdmin Backend Domains, E-Mail, Datenbanken
Purodha Blissenbach
2012-07-18 52752ee0dfd1a1784494dff8b8e997794d2c889c
Pobieren, ob module search eine Liste mit Optione liefet, wenn welche da sind
1 files modified
12 ■■■■ changed files
hsarback/test/de/hsadmin/remote/DomainTest.java 12 ●●●● patch | view | raw | blame | history
hsarback/test/de/hsadmin/remote/DomainTest.java
@@ -129,7 +129,7 @@
        testZeroOptions();
    }
    @Test
//    @Test
    public void testInvalidOption() {
        String user = "aaa00";
        String grantingTicketURL = cas.getGrantingTicketURL(user);
@@ -248,16 +248,16 @@
        try {
            Object execute = client.execute(MODULE + ".search", params);
            Object[] result = (Object[]) execute;
            assertEquals(result.length, 1);
            assertEquals(1, result.length);
            assertTrue(result[0] instanceof Map<?, ?>);
            Map<String, ?> domainMap = (Map<String, ?>) result[0];
            assertNotNull(domainMap);
            Object[] optsList = (Object[])domainMap.get("domainoptions");
            if (optsList == null) {
                count = 0;
            } else {
//            if (optsList == null) {
//                count = 0;
//            } else {
                count = optsList.length;
            }
//            }
        } catch (XmlRpcException e) {
            fail(e.getMessage());
        }