diff options
author | Manuel Bentele | 2021-04-15 15:05:15 +0200 |
---|---|---|
committer | Manuel Bentele | 2021-04-15 15:06:06 +0200 |
commit | 07661b83665c2db556d26dcc11c9ad380878b0ff (patch) | |
tree | f4eb5b597049019c908088992f23500d881c92a3 /src/test | |
parent | Add generic transformation library to transform configs (diff) | |
download | master-sync-shared-07661b83665c2db556d26dcc11c9ad380878b0ff.tar.gz master-sync-shared-07661b83665c2db556d26dcc11c9ad380878b0ff.tar.xz master-sync-shared-07661b83665c2db556d26dcc11c9ad380878b0ff.zip |
Move VmMetaData classes to new virtualization config directories
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/java/org/openslx/virtualization/configuration/machine/QemuMetaDataTest.java (renamed from src/test/java/org/openslx/vm/QemuMetaDataTest.java) | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/test/java/org/openslx/vm/QemuMetaDataTest.java b/src/test/java/org/openslx/virtualization/configuration/machine/QemuMetaDataTest.java index 30607db..3ede8e6 100644 --- a/src/test/java/org/openslx/vm/QemuMetaDataTest.java +++ b/src/test/java/org/openslx/virtualization/configuration/machine/QemuMetaDataTest.java @@ -1,4 +1,4 @@ -package org.openslx.vm; +package org.openslx.virtualization.configuration.machine; import static org.junit.jupiter.api.Assertions.assertDoesNotThrow; import static org.junit.jupiter.api.Assertions.assertEquals; @@ -32,10 +32,12 @@ import org.openslx.libvirt.domain.device.DiskStorage; import org.openslx.libvirt.domain.device.Interface; import org.openslx.libvirt.domain.device.Sound; import org.openslx.libvirt.xml.LibvirtXmlTestResources; -import org.openslx.vm.VmMetaData.EtherType; -import org.openslx.vm.VmMetaData.EthernetDevType; -import org.openslx.vm.VmMetaData.SoundCardType; -import org.openslx.vm.VmMetaData.UsbSpeed; +import org.openslx.virtualization.configuration.UnsupportedVirtualizerFormatException; +import org.openslx.virtualization.configuration.VmMetaData; +import org.openslx.virtualization.configuration.VmMetaData.EtherType; +import org.openslx.virtualization.configuration.VmMetaData.EthernetDevType; +import org.openslx.virtualization.configuration.VmMetaData.SoundCardType; +import org.openslx.virtualization.configuration.VmMetaData.UsbSpeed; import org.openslx.vm.disk.DiskImage; import org.openslx.vm.disk.DiskImageTestResources; import org.openslx.vm.disk.DiskImage.ImageFormat; @@ -200,12 +202,12 @@ public class QemuMetaDataTest final Domain vmLibvirtDomainConfig = QemuMetaDataTest.getPrivateDomainFromQemuMetaData( vmConfig ); final int numHddsLibvirtDomainXmlBeforeAdd = vmLibvirtDomainConfig.getDiskStorageDevices().size(); - final int numHddsQemuMetaDataBeforeAdd = vmConfig.hdds.size(); + final int numHddsQemuMetaDataBeforeAdd = vmConfig.getHdds().size(); vmConfig.addHddTemplate( diskFile, null, null ); final int numHddsLibvirtDomainXmlAfterAdd = vmLibvirtDomainConfig.getDiskStorageDevices().size(); - final int numHddsQemuMetaDataAfterAdd = vmConfig.hdds.size(); + final int numHddsQemuMetaDataAfterAdd = vmConfig.getHdds().size(); assertTrue( numHddsLibvirtDomainXmlBeforeAdd == numHddsQemuMetaDataBeforeAdd ); assertTrue( numHddsLibvirtDomainXmlAfterAdd == numHddsQemuMetaDataAfterAdd ); |