@Test public void testRedundancyProperty() { when(mockVpc.isRedundant()).thenReturn(true); final RouterDeploymentDefinition deployment = builder.create() .setVpc(mockVpc) .setDeployDestination(mockDestination) .build(); assertTrue("The builder ignored redundancy from its inner network", deployment.isRedundant()); when(mockVpc.isRedundant()).thenReturn(false); assertFalse("The builder ignored redundancy from its inner network", deployment.isRedundant()); }
@Override public boolean isRedundant() { return vpc.isRedundant(); }
VpcRouterDeploymentDefinition extends RouterDeploymentDefinition { @Override public boolean isRedundant() { return vpc.isRedundant(); } }
VpcRouterDeploymentDefinition extends RouterDeploymentDefinition { @Override public boolean isRedundant() { return vpc.isRedundant(); } protected  VpcRouterDeploymentDefinition(final Network guestNetwork, final Vpc vpc, final DeployDestination dest, final Account owner,
                                            final Map<Param, Object> params); }
VpcRouterDeploymentDefinition extends RouterDeploymentDefinition { @Override public boolean isRedundant() { return vpc.isRedundant(); } protected  VpcRouterDeploymentDefinition(final Network guestNetwork, final Vpc vpc, final DeployDestination dest, final Account owner,
                                            final Map<Param, Object> params); @Override Vpc getVpc(); @Override boolean isVpcRouter(); @Override boolean needsPublicNic(); @Override boolean hasSourceNatService(); boolean hasGatewayService(); @Override void generateDeploymentPlan(); @Override boolean isRedundant(); }
VpcRouterDeploymentDefinition extends RouterDeploymentDefinition { @Override public boolean isRedundant() { return vpc.isRedundant(); } protected  VpcRouterDeploymentDefinition(final Network guestNetwork, final Vpc vpc, final DeployDestination dest, final Account owner,
                                            final Map<Param, Object> params); @Override Vpc getVpc(); @Override boolean isVpcRouter(); @Override boolean needsPublicNic(); @Override boolean hasSourceNatService(); boolean hasGatewayService(); @Override void generateDeploymentPlan(); @Override boolean isRedundant();  }