Aufruf der JUnit Tests

This commit is contained in:
Peter Hormanns 2011-05-06 11:10:41 +00:00
parent 2d29470f89
commit a9e79b5d7a

View File

@ -64,7 +64,7 @@ public class UnixUserTest {
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 @@ public class UnixUserTest {
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 @@ public class UnixUserTest {
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 @@ public class UnixUserTest {
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");
}