email-tests

This commit is contained in:
Peter Hormanns 2012-01-02 14:41:11 +00:00
parent fe6d407523
commit 652c1178cf
2 changed files with 6 additions and 6 deletions

View File

@ -45,7 +45,7 @@ public class DomainTest {
try {
Object execute = client.execute(MODULE + ".search", params);
Object[] result = (Object[]) execute;
assertEquals(1, result.length);
assertEquals(2, result.length);
for (Object o : result) {
if (o instanceof Map<?, ?>) {
Map<?, ?> row = (Map<?, ?>) o;

View File

@ -70,7 +70,7 @@ public class EMailAddressTest {
try {
Object execute = client.execute(MODULE + ".search", params);
Object[] result = (Object[]) execute;
assertEquals(2, result.length);
assertEquals(3, result.length);
for (Object o : result) {
if (o instanceof Map<?, ?>) {
Map<?, ?> row = (Map<?, ?>) o;
@ -129,18 +129,18 @@ public class EMailAddressTest {
String grantingTicketURL = cas.getGrantingTicketURL(user);
Map<String, String> whereParams = new HashMap<String, String>();
whereParams.put("domain", "example01.org");
whereParams.put("admin", "aaa00");
whereParams.put("admin", "aaa00-admin");
Object[] params = new Object[] { user,
cas.getServiceTicket(grantingTicketURL, RemoteTestHelper.getBackendURL()),
whereParams };
try {
Object execute = client.execute(MODULE + ".search", params);
Object[] result = (Object[]) execute;
assertEquals(2, result.length);
assertEquals(3, result.length);
for (Object o : result) {
if (o instanceof Map<?, ?>) {
Map<?, ?> row = (Map<?, ?>) o;
assertEquals("aaa00", row.get("admin"));
assertEquals("aaa00-admin", row.get("admin"));
} else {
fail("map expected");
}
@ -250,7 +250,7 @@ public class EMailAddressTest {
String user = "aaa00";
String grantingTicketURL = cas.getGrantingTicketURL(user);
Map<String, String> whereParams = new HashMap<String, String>();
whereParams.put("target", "peh00-phor");
whereParams.put("target", "aaa00-test2");
Object[] params = new Object[] { user,
cas.getServiceTicket(grantingTicketURL, RemoteTestHelper.getBackendURL()),
whereParams };