mirror of https://github.com/apache/jclouds.git
DeployVirtualMachineOptions.NONE is not immutable, sadly
This commit is contained in:
parent
e46ee9fbc4
commit
02e83c6423
|
@ -45,7 +45,7 @@ public class OptionsConverterTest {
|
||||||
BasicNetworkOptionsConverter converter = new BasicNetworkOptionsConverter();
|
BasicNetworkOptionsConverter converter = new BasicNetworkOptionsConverter();
|
||||||
|
|
||||||
CloudStackTemplateOptions optionsIn = CloudStackTemplateOptions.Builder.securityGroupId(42).networkId(46);
|
CloudStackTemplateOptions optionsIn = CloudStackTemplateOptions.Builder.securityGroupId(42).networkId(46);
|
||||||
DeployVirtualMachineOptions optionsOut = DeployVirtualMachineOptions.NONE;
|
DeployVirtualMachineOptions optionsOut = new DeployVirtualMachineOptions();
|
||||||
|
|
||||||
DeployVirtualMachineOptions optionsOut2 = converter.apply(optionsIn, EMPTY_NETWORKS_MAP, ZONE_ID, optionsOut);
|
DeployVirtualMachineOptions optionsOut2 = converter.apply(optionsIn, EMPTY_NETWORKS_MAP, ZONE_ID, optionsOut);
|
||||||
assertTrue(optionsOut == optionsOut2);
|
assertTrue(optionsOut == optionsOut2);
|
||||||
|
|
Loading…
Reference in New Issue