DeployVirtualMachineOptions.NONE is not immutable, sadly

This commit is contained in:
Adrian Cole 2012-01-09 10:56:27 -08:00
parent e46ee9fbc4
commit 02e83c6423
1 changed files with 1 additions and 1 deletions

View File

@ -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);