HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2011-05-06 a9e79b5d7a12f31f5f694595110cf11c1993cbc0
Aufruf der JUnit Tests
1 files modified
8 ■■■■ changed files
hsarback/test/de/hsadmin/remote/UnixUserTest.java 8 ●●●● patch | view | raw | blame | history
hsarback/test/de/hsadmin/remote/UnixUserTest.java
@@ -64,7 +64,7 @@
            String user = "aaa00";
            String grantingTicketURL = cas.getGrantingTicketURL(user);
            Map<String, String> setParams = new HashMap<String, String>();
            setParams.put("name", "aaa00-test2");
            setParams.put("name", "aaa00-test3");
            setParams.put("password", "test123");
            setParams.put("quota", "128");
            setParams.put("quotalimit", "192");
@@ -74,7 +74,7 @@
            Object execute = client.execute(MODULE + ".add", params);
            if (execute instanceof Map<?, ?>) {
                Map<?, ?> entry = (Map<?, ?>) execute;
                assertEquals("aaa00-test2", entry.get("name"));
                assertEquals("aaa00-test3", entry.get("name"));
                assertEquals("aaa00", entry.get("pac"));
                assertEquals(null, entry.get("password"));
            } else {
@@ -93,7 +93,7 @@
            String user = "aaa00";
            String grantingTicketURL = cas.getGrantingTicketURL(user);
            Map<String, String> setParams = new HashMap<String, String>();
            setParams.put("name", "peh01-testfail");
            setParams.put("name", "aaa01-testfail");
            setParams.put("password", "test123");
            Object[] params = new Object[] { user, 
                    cas.getServiceTicket(grantingTicketURL, RemoteTestHelper.getBackendURL()), 
@@ -148,7 +148,7 @@
                    if (o instanceof Map<?, ?>) {
                        Map<?, ?> entry = (Map<?, ?>) o;
                        assertNull(entry.get("password"));
                        assertEquals("aaa00-test2", entry.get("name"));
                        assertEquals("aaa00-test3", entry.get("name"));
                    } else {
                        fail("map expected");
                    }