> - assert vg.getStatusId() >= 0 : vg; > - assert vg.getUuid() != null : vg; > - assert vg.getPrimaryBackendIpAddress() != null : vg; > - assert vg.getPrimaryIpAddress() != null : vg; > + if (vg.getActiveTransactionCount() == 0) { > + assertNotNull(vg.getDomain(), "domain must be not null"); > + assertNotNull(vg.getFullyQualifiedDomainName(), > "fullyQualifiedDomainName must be not null"); > + assertNotNull(vg.getHostname(), "hostname must be not null"); > + assertTrue(vg.getId() > 0, "id must be greater than 0"); > + assertTrue(vg.getMaxCpu() > 0, "maxCpu must be greater than 0"); > + assertNotNull(vg.getMaxCpuUnits(), "maxCpuUnits must be not null"); > + assertTrue(vg.getMaxMemory() > 0, "maxMemory must be greater than > 0"); > + assertTrue(vg.getStartCpus() > 0, "startCpus must be greater than > 0"); > + assertTrue(vg.getStatusId() > 0, "statusId must be greater than 0"); > + assertNotNull(vg.getUuid(), "uuid must be not null"); > + } > } > > }
Same here. Add live methods for all the methods in the VirtualGuestApi --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/296/files#r10453249