From ff75a342e83f0c2fb3f3678765bf694416c3e73a Mon Sep 17 00:00:00 2001
From: Peter Hormanns <peter.hormanns@jalin.de>
Date: Fri, 21 Mar 2014 16:24:46 +0100
Subject: [PATCH] Repariere Reihenfolge-abhaengige Tests

---
 hsarback/test/de/hsadmin/remote/EMailAddressTest.java |    2 +-
 hsarback/test/de/hsadmin/remote/DomainTest.java       |   10 +++++-----
 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 836f08b..f2f8421 100644
--- a/hsarback/test/de/hsadmin/remote/DomainTest.java
+++ b/hsarback/test/de/hsadmin/remote/DomainTest.java
@@ -36,7 +36,7 @@
 	}
 
 	@Test
-	public void test1SearchAllAsPacAdmin() {
+	public void testSearchAllAsPacAdmin() {
 		String user = "aaa00";
 		String grantingTicketURL = cas.getGrantingTicketURL(user);
 		Map<String, String> whereParams = new HashMap<String, String>();
@@ -46,7 +46,7 @@
 		try {
 			Object execute = client.execute(MODULE + ".search", params);
 			Object[] result = (Object[]) execute;
-			assertEquals(3, result.length);
+			assertTrue(3 <= result.length);
 			for (Object o : result) {
 				if (o instanceof Map<?, ?>) {
 					Map<?, ?> row = (Map<?, ?>) o;
@@ -61,7 +61,7 @@
 	}
 
 	@Test
-	public void test2Update() {
+	public void testUpdate() {
 		String user = "aaa00";
 		String grantingTicketURL = cas.getGrantingTicketURL(user);
 		Map<String, String> setParams = new HashMap<String, String>();
@@ -80,7 +80,7 @@
 	}
 
 	@Test
-	public void test3Create() throws UnknownHostException, IOException {
+	public void testCreate() throws UnknownHostException, IOException {
 		int count = getDomsCount();
 		String user = "aaa00";
 		String grantingTicketURL = cas.getGrantingTicketURL(user);
@@ -100,7 +100,7 @@
 	}
 
 	@Test
-	public void test4CreateForeignSubdomain() throws UnknownHostException, IOException {
+	public void testCreateForeignSubdomain() throws UnknownHostException, IOException {
 		int count = getDomsCount();
 		String user = "aaa00";
 		String grantingTicketURL = cas.getGrantingTicketURL(user);
diff --git a/hsarback/test/de/hsadmin/remote/EMailAddressTest.java b/hsarback/test/de/hsadmin/remote/EMailAddressTest.java
index c55d0fe..642f875 100644
--- a/hsarback/test/de/hsadmin/remote/EMailAddressTest.java
+++ b/hsarback/test/de/hsadmin/remote/EMailAddressTest.java
@@ -44,7 +44,7 @@
 		try {
 			Object execute = client.execute(MODULE + ".search", params);
 			Object[] result = (Object[]) execute;
-			assertEquals(6, result.length);
+			assertTrue(6 <= result.length);
 			for (Object o : result) {
 				if (o instanceof Map<?, ?>) {
 					Map<?, ?> row = (Map<?, ?>) o;

--
Gitblit v1.9.0-SNAPSHOT