From 652c1178cf925135e46a3367bf3ea0a49db19760 Mon Sep 17 00:00:00 2001
From: Peter Hormanns <peter.hormanns@hostsharing.net>
Date: Mon, 02 Jan 2012 15:41:11 +0100
Subject: [PATCH] email-tests

---
 hsarback/test/de/hsadmin/remote/EMailAddressTest.java |   10 +++++-----
 hsarback/test/de/hsadmin/remote/DomainTest.java       |    2 +-
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/hsarback/test/de/hsadmin/remote/DomainTest.java b/hsarback/test/de/hsadmin/remote/DomainTest.java
index d044479..2c9b198 100644
--- a/hsarback/test/de/hsadmin/remote/DomainTest.java
+++ b/hsarback/test/de/hsadmin/remote/DomainTest.java
@@ -45,7 +45,7 @@
 		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;
diff --git a/hsarback/test/de/hsadmin/remote/EMailAddressTest.java b/hsarback/test/de/hsadmin/remote/EMailAddressTest.java
index 9d6db2c..a8cd81f 100644
--- a/hsarback/test/de/hsadmin/remote/EMailAddressTest.java
+++ b/hsarback/test/de/hsadmin/remote/EMailAddressTest.java
@@ -70,7 +70,7 @@
 		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 @@
 		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 @@
 			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 };

--
Gitblit v1.9.1