Aufruf der JUnit Tests
This commit is contained in:
parent
2d29470f89
commit
a9e79b5d7a
@ -64,7 +64,7 @@ public class UnixUserTest {
|
|||||||
String user = "aaa00";
|
String user = "aaa00";
|
||||||
String grantingTicketURL = cas.getGrantingTicketURL(user);
|
String grantingTicketURL = cas.getGrantingTicketURL(user);
|
||||||
Map<String, String> setParams = new HashMap<String, String>();
|
Map<String, String> setParams = new HashMap<String, String>();
|
||||||
setParams.put("name", "aaa00-test2");
|
setParams.put("name", "aaa00-test3");
|
||||||
setParams.put("password", "test123");
|
setParams.put("password", "test123");
|
||||||
setParams.put("quota", "128");
|
setParams.put("quota", "128");
|
||||||
setParams.put("quotalimit", "192");
|
setParams.put("quotalimit", "192");
|
||||||
@ -74,7 +74,7 @@ public class UnixUserTest {
|
|||||||
Object execute = client.execute(MODULE + ".add", params);
|
Object execute = client.execute(MODULE + ".add", params);
|
||||||
if (execute instanceof Map<?, ?>) {
|
if (execute instanceof Map<?, ?>) {
|
||||||
Map<?, ?> entry = (Map<?, ?>) execute;
|
Map<?, ?> entry = (Map<?, ?>) execute;
|
||||||
assertEquals("aaa00-test2", entry.get("name"));
|
assertEquals("aaa00-test3", entry.get("name"));
|
||||||
assertEquals("aaa00", entry.get("pac"));
|
assertEquals("aaa00", entry.get("pac"));
|
||||||
assertEquals(null, entry.get("password"));
|
assertEquals(null, entry.get("password"));
|
||||||
} else {
|
} else {
|
||||||
@ -93,7 +93,7 @@ public class UnixUserTest {
|
|||||||
String user = "aaa00";
|
String user = "aaa00";
|
||||||
String grantingTicketURL = cas.getGrantingTicketURL(user);
|
String grantingTicketURL = cas.getGrantingTicketURL(user);
|
||||||
Map<String, String> setParams = new HashMap<String, String>();
|
Map<String, String> setParams = new HashMap<String, String>();
|
||||||
setParams.put("name", "peh01-testfail");
|
setParams.put("name", "aaa01-testfail");
|
||||||
setParams.put("password", "test123");
|
setParams.put("password", "test123");
|
||||||
Object[] params = new Object[] { user,
|
Object[] params = new Object[] { user,
|
||||||
cas.getServiceTicket(grantingTicketURL, RemoteTestHelper.getBackendURL()),
|
cas.getServiceTicket(grantingTicketURL, RemoteTestHelper.getBackendURL()),
|
||||||
@ -148,7 +148,7 @@ public class UnixUserTest {
|
|||||||
if (o instanceof Map<?, ?>) {
|
if (o instanceof Map<?, ?>) {
|
||||||
Map<?, ?> entry = (Map<?, ?>) o;
|
Map<?, ?> entry = (Map<?, ?>) o;
|
||||||
assertNull(entry.get("password"));
|
assertNull(entry.get("password"));
|
||||||
assertEquals("aaa00-test2", entry.get("name"));
|
assertEquals("aaa00-test3", entry.get("name"));
|
||||||
} else {
|
} else {
|
||||||
fail("map expected");
|
fail("map expected");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user