HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2011-05-06 36c884c8996cf860dcfcd66cd1ce137ff7acb4ee
work on tests
3 files modified
24 ■■■■ changed files
hsarback/test/de/hsadmin/remote/MysqlUserTest.java 13 ●●●● patch | view | raw | blame | history
hsarback/test/de/hsadmin/remote/PgsqlUserTest.java 3 ●●●● patch | view | raw | blame | history
hsarback/test/de/hsadmin/remote/RemoteTest.java 8 ●●●● patch | view | raw | blame | history
hsarback/test/de/hsadmin/remote/MysqlUserTest.java
@@ -12,6 +12,7 @@
import org.apache.xmlrpc.client.XmlRpcClient;
import org.junit.After;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
public class MysqlUserTest {
@@ -35,7 +36,7 @@
    @Test
    public void testCreate() {
        int count = getDBsCount();
        int count = getDBUsersCount();
        String user = "aaa00";
        String grantingTicketURL = cas.getGrantingTicketURL(user);
        Map<String, String> setParams = new HashMap<String, String>();
@@ -50,7 +51,7 @@
        } catch (XmlRpcException e) {
            fail(e.getMessage());
        }
        assertEquals(count + 1, getDBsCount());
        assertEquals(count + 1, getDBUsersCount());
    }
    @Test
@@ -70,9 +71,9 @@
        }
    }
    @Test
    @Test @Ignore
    public void testDelete() {
        int count = getDBsCount();
        int count = getDBUsersCount();
        String user = "aaa00";
        String grantingTicketURL = cas.getGrantingTicketURL(user);
        Map<String, String> whereParams = new HashMap<String, String>();
@@ -86,10 +87,10 @@
        } catch (XmlRpcException e) {
            fail(e.getMessage());
        }
        assertEquals(count - 1, getDBsCount());
        assertEquals(count - 1, getDBUsersCount());
    }
    private int getDBsCount() {
    private int getDBUsersCount() {
        int count = 0;
        String user = "aaa00";
        String grantingTicketURL = cas.getGrantingTicketURL(user);
hsarback/test/de/hsadmin/remote/PgsqlUserTest.java
@@ -12,6 +12,7 @@
import org.apache.xmlrpc.client.XmlRpcClient;
import org.junit.After;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
public class PgsqlUserTest {
@@ -70,7 +71,7 @@
        }
    }
    @Test
    @Test @Ignore
    public void testDelete() {
        int count = getDBsCount();
        String user = "aaa00";
hsarback/test/de/hsadmin/remote/RemoteTest.java
@@ -8,11 +8,11 @@
    InitDataTest.class,
    PacTest.class,
    UnixUserTest.class,
    MysqlUserTest.class,
    MysqlDbTest.class,
    PgsqlUserTest.class,
    PgsqlDbTest.class,
    CustomerTest.class
//    MysqlDbTest.class,
//    MysqlUserTest.class,
//    PgsqlDbTest.class,
//    PgsqlUserTest.class,
//    EMailAliasTest.class,
//    EMailAddressTest.class,
//    DomainTest.class,