Do not fail test if we have only the ROOT domain

This commit is contained in:
Andrei Savu 2012-03-14 14:33:48 +02:00
parent 1c8e09264c
commit b9dc387ab4
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ public class DomainDomainClientLiveTest extends BaseCloudStackClientLiveTest {
assertEquals(root.getLevel(), 0); assertEquals(root.getLevel(), 0);
assertEquals(root.getParentDomainId(), 0); assertEquals(root.getParentDomainId(), 0);
assertNull(root.getParentDomainName()); assertNull(root.getParentDomainName());
if (allDomains.size() > 0) { if (allDomains.size() > 1) {
assertTrue(root.hasChild()); assertTrue(root.hasChild());
} }