Repariere Reihenfolge-abhaengige Tests

This commit is contained in:
Peter Hormanns 2014-03-21 16:24:46 +01:00
parent 1ea0bc8966
commit ff75a342e8
2 changed files with 6 additions and 6 deletions

View File

@ -36,7 +36,7 @@ public class DomainTest {
}
@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 @@ public class DomainTest {
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 @@ public class DomainTest {
}
@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 @@ public class DomainTest {
}
@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 @@ public class DomainTest {
}
@Test
public void test4CreateForeignSubdomain() throws UnknownHostException, IOException {
public void testCreateForeignSubdomain() throws UnknownHostException, IOException {
int count = getDomsCount();
String user = "aaa00";
String grantingTicketURL = cas.getGrantingTicketURL(user);

View File

@ -44,7 +44,7 @@ public class EMailAddressTest {
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;