use of org.ovirt.engine.sdk4.internal.containers.VmContainer in project ovirt-engine-sdk-java by oVirt.
the class VmTest method testVmDiskWithValues.
/**
* Check when creating list of vm disks it creates that list
*/
@Test
public void testVmDiskWithValues() {
VmContainer vm = new VmContainer();
vm.diskAttachments(Arrays.asList((DiskAttachment) new DiskAttachmentContainer()));
assertNotNull(vm.diskAttachments());
assertEquals(1, vm.diskAttachments().size());
assertNotNull(vm.diskAttachments().get(0));
}
use of org.ovirt.engine.sdk4.internal.containers.VmContainer in project ovirt-engine-sdk-java by oVirt.
the class VmTest method testVmDiskIsEmpty.
/**
* Check when creating null vm disks it creates empty list
*/
@Test
public void testVmDiskIsEmpty() {
VmContainer vm = new VmContainer();
vm.diskAttachments(null);
assertNotNull(vm.diskAttachments());
assertEquals(0, vm.diskAttachments().size());
}
Aggregations