diff options
author | Elena Kuleshov <evn@att.com> | 2019-05-20 17:22:18 -0400 |
---|---|---|
committer | Elena Kuleshov <evn@att.com> | 2019-05-20 17:23:40 -0400 |
commit | e6e0c906bddeb9bb5b67b16b4b9530d6b0c1946c (patch) | |
tree | e871c0ce7f32d73f16069574ccbd5aaffb3e53fc /bpmn/MSOCommonBPMN/src/test/java/org/onap | |
parent | 969333e6374d3e2259ab5fbbdbcbb3f4c12a134e (diff) |
Change serviceInstance CM retrieval
Change serviceInstance CM retrieval
Issue-ID: SO-1903
Signed-off-by: Kuleshov, Elena <evn@att.com>
Change-Id: I6bc1e3f0d219d6c9feff083ce43cd6afdec1c439
Diffstat (limited to 'bpmn/MSOCommonBPMN/src/test/java/org/onap')
-rw-r--r-- | bpmn/MSOCommonBPMN/src/test/java/org/onap/so/bpmn/servicedecomposition/ExtractPojosForBBTest.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bpmn/MSOCommonBPMN/src/test/java/org/onap/so/bpmn/servicedecomposition/ExtractPojosForBBTest.java b/bpmn/MSOCommonBPMN/src/test/java/org/onap/so/bpmn/servicedecomposition/ExtractPojosForBBTest.java index 8ab2c8e155..7bd2beeb92 100644 --- a/bpmn/MSOCommonBPMN/src/test/java/org/onap/so/bpmn/servicedecomposition/ExtractPojosForBBTest.java +++ b/bpmn/MSOCommonBPMN/src/test/java/org/onap/so/bpmn/servicedecomposition/ExtractPojosForBBTest.java @@ -227,4 +227,16 @@ public class ExtractPojosForBBTest extends BaseTest { gBBInput.setCustomer(customer); extractPojos.extractByKey(execution, ResourceKey.VPN_BONDING_LINK_ID); } + + @Test + public void getServiceInstanceWithNoCustomer() throws BBObjectNotFoundException { + ServiceInstance serviceInstancePend = new ServiceInstance(); + serviceInstancePend.setServiceInstanceId("abc"); + lookupKeyMap.put(ResourceKey.SERVICE_INSTANCE_ID, serviceInstancePend.getServiceInstanceId()); + Customer customer = new Customer(); + gBBInput.setCustomer(customer); + gBBInput.setServiceInstance(serviceInstancePend); + ServiceInstance extractServPend = extractPojos.extractByKey(execution, ResourceKey.SERVICE_INSTANCE_ID); + assertEquals(extractServPend.getServiceInstanceId(), serviceInstancePend.getServiceInstanceId()); + } } |