diff options
author | Wojciech Sliwka <wojciech.sliwka@nokia.com> | 2019-02-18 13:11:12 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-02-18 13:11:12 +0000 |
commit | 67d99f816cc583643c35193197594cf78d8ce60a (patch) | |
tree | 49eb74e6955f869caf53bbcf7913b1b3438ba717 /vid-app-common/src/test/java/org/onap/vid/aai/PombaClientImplTest.java | |
parent | 36baada47134d2e6915baad5627d14d26e4c35ef (diff) | |
parent | 619d5f7dd8a03c4d53ff9adacfd5d208f1371735 (diff) |
Merge "PombaReqest and ServiceInstance improvements"
Diffstat (limited to 'vid-app-common/src/test/java/org/onap/vid/aai/PombaClientImplTest.java')
-rw-r--r-- | vid-app-common/src/test/java/org/onap/vid/aai/PombaClientImplTest.java | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/vid-app-common/src/test/java/org/onap/vid/aai/PombaClientImplTest.java b/vid-app-common/src/test/java/org/onap/vid/aai/PombaClientImplTest.java index b1c4139b7..4e832d5f7 100644 --- a/vid-app-common/src/test/java/org/onap/vid/aai/PombaClientImplTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/aai/PombaClientImplTest.java @@ -2,9 +2,7 @@ * ============LICENSE_START======================================================= * VID * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Modifications Copyright 2019 Nokia + * Copyright (C) 2019 Nokia * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,19 +72,18 @@ public class PombaClientImplTest { ServiceInstance serviceInstance2 = createServiceInstance("serviceType2", "serviceInstanceId2", "customerId2", "modelVersion2", "modelInvariantId2"); - PombaRequest pombaRequest = new PombaRequest(); - pombaRequest.serviceInstanceList = Lists.newArrayList(serviceInstance1, serviceInstance2); + PombaRequest pombaRequest = new PombaRequest(Lists.newArrayList(serviceInstance1, serviceInstance2)); return pombaRequest; } private ServiceInstance createServiceInstance(String serviceType, String serviceInstanceId, String customerId, String modelVersionId, String modelInvariantId) { - ServiceInstance serviceInstance = new ServiceInstance(); - serviceInstance.serviceType = serviceType; - serviceInstance.serviceInstanceId = serviceInstanceId; - serviceInstance.customerId = customerId; - serviceInstance.modelInvariantId = modelInvariantId; - serviceInstance.modelVersionId = modelVersionId; + ServiceInstance serviceInstance = new ServiceInstance( + serviceInstanceId, + modelVersionId, + modelInvariantId, + customerId, + serviceType); return serviceInstance; } |