test_class.declarator: VPC_OFFERING_ID = 210L
test_class.modifier: public static final
test_class.original_string: public static final long VPC_OFFERING_ID = 210L;
test_class.type: long
test_class.var_name: VPC_OFFERING_ID
test_class.declarator: FOR_VPC_ONLY_THE_GIVEN_DESTINATION_SHOULD_BE_USED = "For Vpc only the given destination should be used"
test_class.modifier: private static final
test_class.original_string: private static final String FOR_VPC_ONLY_THE_GIVEN_DESTINATION_SHOULD_BE_USED = "For Vpc only the given destination should be used";
test_class.type: String
test_class.var_name: FOR_VPC_ONLY_THE_GIVEN_DESTINATION_SHOULD_BE_USED
test_class.declarator: VPC_ID = 201L
test_class.modifier: private static final
test_class.original_string: private static final long VPC_ID = 201L;
test_class.type: long
test_class.var_name: VPC_ID
test_class.declarator: mockVpcDao
test_class.modifier: @Mock
      protected
test_class.original_string: @Mock
      protected VpcDao mockVpcDao;
test_class.type: VpcDao
test_class.var_name: mockVpcDao
test_class.declarator: mockPhNwDao
test_class.modifier: @Mock
      protected
test_class.original_string: @Mock
      protected PhysicalNetworkDao mockPhNwDao;
test_class.type: PhysicalNetworkDao
test_class.var_name: mockPhNwDao
test_class.declarator: mockPhProviderDao
test_class.modifier: protected
test_class.original_string: protected PhysicalNetworkServiceProviderDao mockPhProviderDao;
test_class.type: PhysicalNetworkServiceProviderDao
test_class.var_name: mockPhProviderDao
test_class.declarator: mockVpc
test_class.modifier: @Mock
      protected
test_class.original_string: @Mock
      protected VpcVO mockVpc;
test_class.type: VpcVO
test_class.var_name: mockVpc
test_class.declarator: mockVpcOffDao
test_class.modifier: @Mock
      protected
test_class.original_string: @Mock
      protected VpcOfferingDao mockVpcOffDao;
test_class.type: VpcOfferingDao
test_class.var_name: mockVpcOffDao
test_class.declarator: vpcMgr
test_class.modifier: @Mock
      protected
test_class.original_string: @Mock
      protected VpcManager vpcMgr;
test_class.type: VpcManager
test_class.var_name: vpcMgr
test_class.declarator: vpcHelper
test_class.modifier: @Mock
      protected
test_class.original_string: @Mock
      protected NicProfileHelper vpcHelper;
test_class.type: NicProfileHelper
test_class.var_name: vpcHelper
test_class.declarator: deployment
test_class.modifier: protected
test_class.original_string: protected RouterDeploymentDefinition deployment;
test_class.type: RouterDeploymentDefinition
test_class.var_name: deployment
test_class.file: cosmic-core/server/src/test/java/com/cloud/network/router/deployment/VpcRouterDeploymentDefinitionTest.java
test_class.identifier: VpcRouterDeploymentDefinitionTest
test_class.superclass: extends RouterDeploymentDefinitionTestBase
test_case.body: @Test
      public void testRedundancyProperty() {
          // Set and confirm is redundant
          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());
      }
test_case.class_method_signature: VpcRouterDeploymentDefinitionTest.testRedundancyProperty()
test_case.full_signature: @Test public void testRedundancyProperty()
test_case.identifier: testRedundancyProperty
test_case.invocations: thenReturn when isRedundant build setDeployDestination setVpc create assertTrue isRedundant thenReturn when isRedundant assertFalse isRedundant
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testRedundancyProperty()
focal_class.declarator: logger = LoggerFactory.getLogger(VpcRouterDeploymentDefinition.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger logger = LoggerFactory.getLogger(VpcRouterDeploymentDefinition.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: vpcDao
focal_class.modifier: protected
focal_class.original_string: protected VpcDao vpcDao;
focal_class.type: VpcDao
focal_class.var_name: vpcDao
focal_class.declarator: vpcOffDao
focal_class.modifier: protected
focal_class.original_string: protected VpcOfferingDao vpcOffDao;
focal_class.type: VpcOfferingDao
focal_class.var_name: vpcOffDao
focal_class.declarator: pNtwkDao
focal_class.modifier: protected
focal_class.original_string: protected PhysicalNetworkDao pNtwkDao;
focal_class.type: PhysicalNetworkDao
focal_class.var_name: pNtwkDao
focal_class.declarator: vpcMgr
focal_class.modifier: protected
focal_class.original_string: protected VpcManager vpcMgr;
focal_class.type: VpcManager
focal_class.var_name: vpcMgr
focal_class.declarator: vlanDao
focal_class.modifier: protected
focal_class.original_string: protected VlanDao vlanDao;
focal_class.type: VlanDao
focal_class.var_name: vlanDao
focal_class.declarator: vpc
focal_class.modifier: protected
focal_class.original_string: protected Vpc vpc;
focal_class.type: Vpc
focal_class.var_name: vpc
focal_class.file: cosmic-core/server/src/main/java/com/cloud/network/router/deployment/VpcRouterDeploymentDefinition.java
focal_class.identifier: VpcRouterDeploymentDefinition
focal_class.class_method_signature: VpcRouterDeploymentDefinition.VpcRouterDeploymentDefinition(final Network guestNetwork, final Vpc vpc, final DeployDestination dest, final Account owner,
                                              final Map<Param, Object> params)
focal_class.full_signature: protected  VpcRouterDeploymentDefinition(final Network guestNetwork, final Vpc vpc, final DeployDestination dest, final Account owner,
                                              final Map<Param, Object> params)
focal_class.identifier: VpcRouterDeploymentDefinition
focal_class.modifiers: protected
focal_class.parameters: (final Network guestNetwork, final Vpc vpc, final DeployDestination dest, final Account owner,
                                              final Map<Param, Object> params)
focal_class.signature:  VpcRouterDeploymentDefinition(final Network guestNetwork, final Vpc vpc, final DeployDestination dest, final Account owner,
                                              final Map<Param, Object> params)
focal_class.class_method_signature: VpcRouterDeploymentDefinition.getVpc()
focal_class.full_signature: @Override public Vpc getVpc()
focal_class.identifier: getVpc
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Vpc
focal_class.signature: Vpc getVpc()
focal_class.class_method_signature: VpcRouterDeploymentDefinition.isVpcRouter()
focal_class.full_signature: @Override public boolean isVpcRouter()
focal_class.identifier: isVpcRouter
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isVpcRouter()
focal_class.class_method_signature: VpcRouterDeploymentDefinition.lock()
focal_class.full_signature: @Override protected void lock()
focal_class.identifier: lock
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void lock()
focal_class.class_method_signature: VpcRouterDeploymentDefinition.unlock()
focal_class.full_signature: @Override protected void unlock()
focal_class.identifier: unlock
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void unlock()
focal_class.class_method_signature: VpcRouterDeploymentDefinition.checkPreconditions()
focal_class.full_signature: @Override protected void checkPreconditions()
focal_class.identifier: checkPreconditions
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void checkPreconditions()
focal_class.class_method_signature: VpcRouterDeploymentDefinition.findDestinations()
focal_class.full_signature: @Override protected List<DeployDestination> findDestinations()
focal_class.identifier: findDestinations
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: List<DeployDestination>
focal_class.signature: List<DeployDestination> findDestinations()
focal_class.class_method_signature: VpcRouterDeploymentDefinition.prepareDeployment()
focal_class.full_signature: @Override protected boolean prepareDeployment()
focal_class.identifier: prepareDeployment
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean prepareDeployment()
focal_class.class_method_signature: VpcRouterDeploymentDefinition.needsPublicNic()
focal_class.full_signature: @Override public boolean needsPublicNic()
focal_class.identifier: needsPublicNic
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean needsPublicNic()
focal_class.class_method_signature: VpcRouterDeploymentDefinition.hasSourceNatService()
focal_class.full_signature: @Override public boolean hasSourceNatService()
focal_class.identifier: hasSourceNatService
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean hasSourceNatService()
focal_class.class_method_signature: VpcRouterDeploymentDefinition.hasGatewayService()
focal_class.full_signature: public boolean hasGatewayService()
focal_class.identifier: hasGatewayService
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean hasGatewayService()
focal_class.class_method_signature: VpcRouterDeploymentDefinition.hasService(final Network.Service service)
focal_class.full_signature: private boolean hasService(final Network.Service service)
focal_class.identifier: hasService
focal_class.modifiers: private
focal_class.parameters: (final Network.Service service)
focal_class.return: boolean
focal_class.signature: boolean hasService(final Network.Service service)
focal_class.class_method_signature: VpcRouterDeploymentDefinition.findSourceNatIP()
focal_class.full_signature: @Override protected void findSourceNatIP()
focal_class.identifier: findSourceNatIP
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void findSourceNatIP()
focal_class.class_method_signature: VpcRouterDeploymentDefinition.findOrDeployVirtualRouter()
focal_class.full_signature: @Override protected void findOrDeployVirtualRouter()
focal_class.identifier: findOrDeployVirtualRouter
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void findOrDeployVirtualRouter()
focal_class.class_method_signature: VpcRouterDeploymentDefinition.findVirtualProvider()
focal_class.full_signature: @Override protected void findVirtualProvider()
focal_class.identifier: findVirtualProvider
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void findVirtualProvider()
focal_class.class_method_signature: VpcRouterDeploymentDefinition.findServiceOfferingId()
focal_class.full_signature: @Override protected void findServiceOfferingId()
focal_class.identifier: findServiceOfferingId
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void findServiceOfferingId()
focal_class.class_method_signature: VpcRouterDeploymentDefinition.findSecondaryServiceOfferingId()
focal_class.full_signature: @Override protected void findSecondaryServiceOfferingId()
focal_class.identifier: findSecondaryServiceOfferingId
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void findSecondaryServiceOfferingId()
focal_class.class_method_signature: VpcRouterDeploymentDefinition.deployAllVirtualRouters()
focal_class.full_signature: @Override protected void deployAllVirtualRouters()
focal_class.identifier: deployAllVirtualRouters
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void deployAllVirtualRouters()
focal_class.class_method_signature: VpcRouterDeploymentDefinition.planDeploymentRouters()
focal_class.full_signature: @Override protected void planDeploymentRouters()
focal_class.identifier: planDeploymentRouters
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void planDeploymentRouters()
focal_class.class_method_signature: VpcRouterDeploymentDefinition.generateDeploymentPlan()
focal_class.full_signature: @Override public void generateDeploymentPlan()
focal_class.identifier: generateDeploymentPlan
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void generateDeploymentPlan()
focal_class.class_method_signature: VpcRouterDeploymentDefinition.isRedundant()
focal_class.full_signature: @Override public boolean isRedundant()
focal_class.identifier: isRedundant
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isRedundant()
focal_class.superclass: extends RouterDeploymentDefinition
focal_method.body: @Override
      public boolean isRedundant() {
          return vpc.isRedundant();
      }
focal_method.class_method_signature: VpcRouterDeploymentDefinition.isRedundant()
focal_method.full_signature: @Override public boolean isRedundant()
focal_method.identifier: isRedundant
focal_method.invocations: isRedundant
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: boolean
focal_method.signature: boolean isRedundant()