Pobieren, ob module search eine Liste mit Optione liefet, wenn welche da sind

This commit is contained in:
Purodha Blissenbach 2012-07-18 19:17:40 +00:00
parent 7146dcc16f
commit 52752ee0df

View File

@ -129,7 +129,7 @@ public class DomainTest {
testZeroOptions();
}
@Test
// @Test
public void testInvalidOption() {
String user = "aaa00";
String grantingTicketURL = cas.getGrantingTicketURL(user);
@ -248,16 +248,16 @@ public class DomainTest {
try {
Object execute = client.execute(MODULE + ".search", params);
Object[] result = (Object[]) execute;
assertEquals(result.length, 1);
assertEquals(1, result.length);
assertTrue(result[0] instanceof Map<?, ?>);
Map<String, ?> domainMap = (Map<String, ?>) result[0];
assertNotNull(domainMap);
Object[] optsList = (Object[])domainMap.get("domainoptions");
if (optsList == null) {
count = 0;
} else {
// if (optsList == null) {
// count = 0;
// } else {
count = optsList.length;
}
// }
} catch (XmlRpcException e) {
fail(e.getMessage());
}