user-test

This commit is contained in:
Peter Hormanns 2012-01-02 13:18:57 +00:00
parent 3111d6b4cd
commit df401564f4
2 changed files with 20 additions and 20 deletions

View File

@ -11,8 +11,8 @@ import org.junit.runners.Suite;
MysqlDbTest.class, MysqlDbTest.class,
PgsqlUserTest.class, PgsqlUserTest.class,
PgsqlDbTest.class, PgsqlDbTest.class,
PacTest.class PacTest.class,
// UnixUserTest.class, UnixUserTest.class
// EMailAliasTest.class, // EMailAliasTest.class,
// DomainTest.class, // DomainTest.class,
// EMailAddressTest.class, // EMailAddressTest.class,

View File

@ -181,24 +181,24 @@ public class UnixUserTest {
assertEquals(count, getObjectCount()); assertEquals(count, getObjectCount());
} }
// @Test @Test
// public void testDeleteAsPacAdminFail() { public void testDeleteAsPacAdminFail() {
// int count = getObjectCount(); int count = getObjectCount();
// try { try {
// String user = "aaa01"; String user = "aaa01";
// String grantingTicketURL = cas.getGrantingTicketURL(user); String grantingTicketURL = cas.getGrantingTicketURL(user);
// Map<String, String> whereParams = new HashMap<String, String>(); Map<String, String> whereParams = new HashMap<String, String>();
// whereParams.put("name", "aaa00-test2"); whereParams.put("name", "aaa00-test2");
// Object[] params = new Object[] { user, Object[] params = new Object[] { user,
// cas.getServiceTicket(grantingTicketURL, RemoteTestHelper.getBackendURL()), cas.getServiceTicket(grantingTicketURL, RemoteTestHelper.getBackendURL()),
// whereParams }; whereParams };
// Object execute = client.execute(MODULE + ".delete", params); Object execute = client.execute(MODULE + ".delete", params);
// assertNull(execute); assertNull(execute);
// } catch (XmlRpcException e) { } catch (XmlRpcException e) {
// fail(e.getMessage()); fail(e.getMessage());
// } }
// assertEquals(count, getObjectCount()); assertEquals(count, getObjectCount());
// } }
@Test @Test
public void testDeleteAsPacAdmin() { public void testDeleteAsPacAdmin() {