use of org.onap.so.bpmn.servicedecomposition.bbobjects.VpnBinding in project so by onap.
the class BuildingBlockTestDataSetup method buildVpnBinding.
public VpnBinding buildVpnBinding() {
vpnBindingCounter++;
VpnBinding vpnBinding = new VpnBinding();
vpnBinding.setVpnId("testVpnId" + vpnBindingCounter);
vpnBinding.setVpnName("testVpnName" + vpnBindingCounter);
vpnBinding.setCustomerVpnId("testCustomerVpnId" + vpnBindingCounter);
return vpnBinding;
}
use of org.onap.so.bpmn.servicedecomposition.bbobjects.VpnBinding in project so by onap.
the class BuildingBlockTestDataSetup method setVpnBinding.
public VpnBinding setVpnBinding() {
VpnBinding vpnBinding = buildVpnBinding();
Customer customer = gBBInput.getCustomer();
if (customer == null) {
customer = buildCustomer();
}
customer.getVpnBindings().add(vpnBinding);
lookupKeyMap.put(ResourceKey.VPN_ID, vpnBinding.getVpnId());
return vpnBinding;
}
use of org.onap.so.bpmn.servicedecomposition.bbobjects.VpnBinding in project so by onap.
the class AAIObjectMapperTest method mapVpnBindingTest.
@Test
public void mapVpnBindingTest() {
VpnBinding vpnBinding = new VpnBinding();
vpnBinding.setVpnId("testVpnId");
vpnBinding.setVpnName("testVpn");
vpnBinding.setVpnPlatform("AVPN");
vpnBinding.setCustomerVpnId("testCustomerVpnId");
vpnBinding.setVpnType("testVpnType");
vpnBinding.setVpnRegion("testVpnRegion");
vpnBinding.setRouteDistinguisher("testRD");
RouteTarget routeTarget = new RouteTarget();
routeTarget.setRouteTargetRole("testRtRole");
routeTarget.setGlobalRouteTarget("testGrt");
vpnBinding.getRouteTargets().add(routeTarget);
org.onap.aai.domain.yang.VpnBinding expectedVpnBinding = new org.onap.aai.domain.yang.VpnBinding();
expectedVpnBinding.setVpnId("testVpnId");
expectedVpnBinding.setVpnName("testVpn");
expectedVpnBinding.setVpnPlatform("AVPN");
expectedVpnBinding.setCustomerVpnId("testCustomerVpnId");
expectedVpnBinding.setVpnType("testVpnType");
expectedVpnBinding.setVpnRegion("testVpnRegion");
expectedVpnBinding.setRouteDistinguisher("testRD");
org.onap.aai.domain.yang.RouteTarget expectedRouteTarget = new org.onap.aai.domain.yang.RouteTarget();
expectedRouteTarget.setRouteTargetRole("testRtRole");
expectedRouteTarget.setGlobalRouteTarget("testGrt");
RouteTargets expectedRouteTargets = new RouteTargets();
expectedRouteTargets.getRouteTarget().add(expectedRouteTarget);
expectedVpnBinding.setRouteTargets(expectedRouteTargets);
org.onap.aai.domain.yang.VpnBinding actualVpnBinding = aaiObjectMapper.mapVpnBinding(vpnBinding);
assertThat(actualVpnBinding, sameBeanAs(expectedVpnBinding));
}
use of org.onap.so.bpmn.servicedecomposition.bbobjects.VpnBinding in project so by onap.
the class TestDataSetup method setVpnBinding.
public VpnBinding setVpnBinding() {
VpnBinding vpnBinding = buildVpnBinding();
Customer customer = gBBInput.getCustomer();
if (customer == null) {
customer = buildCustomer();
}
customer.getVpnBindings().add(vpnBinding);
lookupKeyMap.put(ResourceKey.VPN_ID, vpnBinding.getVpnId());
return vpnBinding;
}
use of org.onap.so.bpmn.servicedecomposition.bbobjects.VpnBinding in project so by onap.
the class TestDataSetup method buildVpnBinding.
public VpnBinding buildVpnBinding() {
vpnBindingCounter++;
VpnBinding vpnBinding = new VpnBinding();
vpnBinding.setVpnId("testVpnId" + vpnBindingCounter);
vpnBinding.setVpnName("testVpnName" + vpnBindingCounter);
vpnBinding.setCustomerVpnId("testCustomerVpnId" + vpnBindingCounter);
return vpnBinding;
}
Aggregations