updated clone on templateoptions

This commit is contained in:
Adrian Cole 2011-11-28 09:19:49 -05:00
parent 933c9102ec
commit 4981ca6efb
2 changed files with 6 additions and 0 deletions

View File

@ -75,7 +75,11 @@ public class CloudStackTemplateOptions extends TemplateOptions implements Clonea
if (to instanceof CloudStackTemplateOptions) { if (to instanceof CloudStackTemplateOptions) {
CloudStackTemplateOptions eTo = CloudStackTemplateOptions.class.cast(to); CloudStackTemplateOptions eTo = CloudStackTemplateOptions.class.cast(to);
eTo.securityGroupIds(this.securityGroupIds); eTo.securityGroupIds(this.securityGroupIds);
eTo.networkIds(this.networkIds);
eTo.ipsToNetworks(this.ipsToNetworks);
eTo.ipOnDefaultNetwork(this.ipOnDefaultNetwork);
eTo.keyPair(this.keyPair); eTo.keyPair(this.keyPair);
eTo.setupStaticNat(setupStaticNat);
} }
} }

View File

@ -48,6 +48,8 @@ import java.util.Map;
// surefire // surefire
@Test(groups = "unit", testName = "CloudStackTemplateOptionsTest") @Test(groups = "unit", testName = "CloudStackTemplateOptionsTest")
public class CloudStackTemplateOptionsTest { public class CloudStackTemplateOptionsTest {
//TODO: test clone();
@Test @Test
public void testAs() { public void testAs() {
TemplateOptions options = new CloudStackTemplateOptions(); TemplateOptions options = new CloudStackTemplateOptions();