HSAdmin Backend Domains, E-Mail, Datenbanken
Purodha Blissenbach
2012-07-18 f27e744cd207f9eff19d5f94dd8bf6f37271fe04
Test auf Null Domainoptionen zugefügt.
1 files modified
22 ■■■■■ changed files
hsarback/test/de/hsadmin/remote/DomainTest.java 22 ●●●●● patch | view | raw | blame | history
hsarback/test/de/hsadmin/remote/DomainTest.java
@@ -191,6 +191,28 @@
        }
    }
    @Test
    public void testZeroOptions() {
        String user = "aaa00";
        String grantingTicketURL = cas.getGrantingTicketURL(user);
        Map<String, Object> setParams = new HashMap<String, Object>();
        Map<String, String> whereParams = new HashMap<String, String>();
        setParams.put("user", "aaa00");
        List<String> optionslist = new ArrayList<String>();
        setParams.put("domainoptions", optionslist);
        whereParams.put("name", "example01.org");
        Object[] params = new Object[] { user,
                cas.getServiceTicket(grantingTicketURL, RemoteTestHelper.getBackendURL()),
                setParams, whereParams };
        try {
            Object execute = client.execute(MODULE + ".update", params);
            assertNotNull(execute);
            assertEquals(getDomOptionsCount(),0);
        } catch (XmlRpcException e) {
            fail(e.getMessage());
        }
    }
    private int getDomsCount() {
        int count = 0;
        String user = "aaa00";