282930313233343536
import org.junit.Before; public class TestJVM extends TestVmManager<JVMConfig> { @Before public void setUp() throws IOException { Config config = new CustomConfigReader(ConfigReader.JVM_TYPE).read(AllTests.CONFIG_DIRECTORY); this.config = (JVMConfig) config.getVMConfig(); vmManager = new JVM(); }
import org.junit.Before; public class TestKVM extends TestVmManager<KVMConfig> { @Before public void setUp() throws IOException { Config config = new CustomConfigReader(ConfigReader.KVM_TYPE).read(AllTests.CONFIG_DIRECTORY); this.config = (KVMConfig) config.getVMConfig(); vmManager = new KVM(); }
31323334353637383940
import org.junit.Test; public class TestVMware extends TestVmManager<VMwareConfig> { @Before public void setUp() throws IOException { Config config = new CustomConfigReader(ConfigReader.VMWARE_TYPE).readConfig(); this.config = (VMwareConfig) config.getVMConfig(); vmManager = new VMware((VMwareConfig) this.config); }
5051525354555657585960
return super.createVMConfig(vmProperties, vm); } }; Config config = reader.readConfig(); VMwareConfig vmwareConfig = (VMwareConfig) config.getVMConfig(); VMware vmware = new VMware(vmwareConfig); vmware.getRunningVMs(vmwareConfig); }