From df401564f491c1951e701a48e1c543c10f9093e4 Mon Sep 17 00:00:00 2001
From: Peter Hormanns <peter.hormanns@hostsharing.net>
Date: Mon, 02 Jan 2012 14:18:57 +0100
Subject: [PATCH] user-test

---
 hsarback/test/de/hsadmin/remote/RemoteTest.java   |    4 ++--
 hsarback/test/de/hsadmin/remote/UnixUserTest.java |   36 ++++++++++++++++++------------------
 2 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/hsarback/test/de/hsadmin/remote/RemoteTest.java b/hsarback/test/de/hsadmin/remote/RemoteTest.java
index 4e6d36e..2ecf6c1 100644
--- a/hsarback/test/de/hsadmin/remote/RemoteTest.java
+++ b/hsarback/test/de/hsadmin/remote/RemoteTest.java
@@ -11,8 +11,8 @@
 	MysqlDbTest.class,
 	PgsqlUserTest.class,
 	PgsqlDbTest.class,
-	PacTest.class
-//	UnixUserTest.class,
+	PacTest.class,
+	UnixUserTest.class
 //	EMailAliasTest.class,
 //	DomainTest.class,
 //	EMailAddressTest.class,
diff --git a/hsarback/test/de/hsadmin/remote/UnixUserTest.java b/hsarback/test/de/hsadmin/remote/UnixUserTest.java
index 35b5641..db09191 100644
--- a/hsarback/test/de/hsadmin/remote/UnixUserTest.java
+++ b/hsarback/test/de/hsadmin/remote/UnixUserTest.java
@@ -181,24 +181,24 @@
 		assertEquals(count, getObjectCount());
 	}
 
-//	@Test
-//	public void testDeleteAsPacAdminFail() {
-//		int count = getObjectCount();
-//		try {
-//			String user = "aaa01";
-//			String grantingTicketURL = cas.getGrantingTicketURL(user);
-//			Map<String, String> whereParams = new HashMap<String, String>();
-//			whereParams.put("name", "aaa00-test2");
-//			Object[] params = new Object[] { user, 
-//					cas.getServiceTicket(grantingTicketURL, RemoteTestHelper.getBackendURL()), 
-//					whereParams };
-//			Object execute = client.execute(MODULE + ".delete", params);
-//			assertNull(execute);
-//		} catch (XmlRpcException e) {
-//			fail(e.getMessage());
-//		}
-//		assertEquals(count, getObjectCount());
-//	}
+	@Test
+	public void testDeleteAsPacAdminFail() {
+		int count = getObjectCount();
+		try {
+			String user = "aaa01";
+			String grantingTicketURL = cas.getGrantingTicketURL(user);
+			Map<String, String> whereParams = new HashMap<String, String>();
+			whereParams.put("name", "aaa00-test2");
+			Object[] params = new Object[] { user, 
+					cas.getServiceTicket(grantingTicketURL, RemoteTestHelper.getBackendURL()), 
+					whereParams };
+			Object execute = client.execute(MODULE + ".delete", params);
+			assertNull(execute);
+		} catch (XmlRpcException e) {
+			fail(e.getMessage());
+		}
+		assertEquals(count, getObjectCount());
+	}
 
 	@Test
 	public void testDeleteAsPacAdmin() {

--
Gitblit v1.9.1