From c3619a82215b2277087f73741d57d3a3b75325f6 Mon Sep 17 00:00:00 2001 From: Liam Fallon Date: Wed, 6 Dec 2017 23:06:31 +0100 Subject: Technical Debt in AAI. Eliminate the technical debt identified in the drools-applications/controlloop/common/model-impl/aai module by Sonar Change-Id: I72125baacc217386a4984be04bfc023439eddd13 Signed-off-by: Liam Fallon Issue-ID: POLICY-455 Signed-off-by: Liam Fallon --- .../eventmanager/ControlLoopEventManagerTest.java | 30 +++++++++++----------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'controlloop/common/eventmanager/src/test/java') diff --git a/controlloop/common/eventmanager/src/test/java/org/onap/policy/controlloop/eventmanager/ControlLoopEventManagerTest.java b/controlloop/common/eventmanager/src/test/java/org/onap/policy/controlloop/eventmanager/ControlLoopEventManagerTest.java index be0eb2bc3..99a4c926d 100644 --- a/controlloop/common/eventmanager/src/test/java/org/onap/policy/controlloop/eventmanager/ControlLoopEventManagerTest.java +++ b/controlloop/common/eventmanager/src/test/java/org/onap/policy/controlloop/eventmanager/ControlLoopEventManagerTest.java @@ -288,28 +288,28 @@ public class ControlLoopEventManagerTest { relationshipDataItem.relationshipKey = "customer.global-customer-id"; relationshipDataItem.relationshipValue = "MSO_1610_ST"; - relationshipData.relationshipData.add(relationshipDataItem); + relationshipData.getRelationshipData().add(relationshipDataItem); relationshipDataItem.relationshipKey = "service-subscription.service-type"; relationshipDataItem.relationshipValue = "MSO-dev-service-type"; - relationshipData.relationshipData.add(relationshipDataItem); + relationshipData.getRelationshipData().add(relationshipDataItem); relationshipDataItem.relationshipKey = "service-instance.service-instance-id"; relationshipDataItem.relationshipValue = "e1e9c97c-02c0-4919-9b4c-eb5d5ef68970"; - relationshipData.relationshipData.add(relationshipDataItem); + relationshipData.getRelationshipData().add(relationshipDataItem); RelatedToProperty relatedToProperty = new RelatedToProperty(); RelatedToPropertyItem item = new RelatedToPropertyItem(); item.propertyKey = "service-instance.service-instance-name"; item.propertyValue = "lll_svc_010317"; - relatedToProperty.relatedTo.add(item); + relatedToProperty.getRelatedTo().add(item); relationship.relatedTo = "service-instance"; relationship.relatedLink = "/aai/v11/business/customers/customer/MSO_1610_ST/service-subscriptions/service-subscription/MSO-dev-service-type/service-instances/service-instance/e1e9c97c-02c0-4919-9b4c-eb5d5ef68970"; relationship.relationshipData = relationshipData; relationship.relatedToProperty = relatedToProperty; - relationshipList.relationshipList.add(relationship); + relationshipList.getRelationshipList().add(relationship); response.relationshipList = relationshipList; return response; @@ -335,28 +335,28 @@ public class ControlLoopEventManagerTest { relationshipDataItem.relationshipKey = "customer.global-customer-id"; relationshipDataItem.relationshipValue = "MSO_1610_ST"; - relationshipData.relationshipData.add(relationshipDataItem); + relationshipData.getRelationshipData().add(relationshipDataItem); relationshipDataItem.relationshipKey = "service-subscription.service-type"; relationshipDataItem.relationshipValue = "MSO-dev-service-type"; - relationshipData.relationshipData.add(relationshipDataItem); + relationshipData.getRelationshipData().add(relationshipDataItem); relationshipDataItem.relationshipKey = "service-instance.service-instance-id"; relationshipDataItem.relationshipValue = "e1e9c97c-02c0-4919-9b4c-eb5d5ef68970"; - relationshipData.relationshipData.add(relationshipDataItem); + relationshipData.getRelationshipData().add(relationshipDataItem); RelatedToProperty relatedToProperty = new RelatedToProperty(); RelatedToPropertyItem item = new RelatedToPropertyItem(); item.propertyKey = "service-instance.service-instance-name"; item.propertyValue = "lll_svc_010317"; - relatedToProperty.relatedTo.add(item); + relatedToProperty.getRelatedTo().add(item); relationship.relatedTo = "service-instance"; relationship.relatedLink = "/aai/v11/business/customers/customer/MSO_1610_ST/service-subscriptions/service-subscription/MSO-dev-service-type/service-instances/service-instance/e1e9c97c-02c0-4919-9b4c-eb5d5ef68970"; relationship.relationshipData = relationshipData; relationship.relatedToProperty = relatedToProperty; - relationshipList.relationshipList.add(relationship); + relationshipList.getRelationshipList().add(relationship); response.relationshipList = relationshipList; return response; @@ -380,28 +380,28 @@ public class ControlLoopEventManagerTest { relationshipDataItem.relationshipKey = "customer.global-customer-id"; relationshipDataItem.relationshipValue = "MSO_1610_ST"; - relationshipData.relationshipData.add(relationshipDataItem); + relationshipData.getRelationshipData().add(relationshipDataItem); relationshipDataItem.relationshipKey = "service-subscription.service-type"; relationshipDataItem.relationshipValue = "MSO-dev-service-type"; - relationshipData.relationshipData.add(relationshipDataItem); + relationshipData.getRelationshipData().add(relationshipDataItem); relationshipDataItem.relationshipKey = "service-instance.service-instance-id"; relationshipDataItem.relationshipValue = "e1e9c97c-02c0-4919-9b4c-eb5d5ef68970"; - relationshipData.relationshipData.add(relationshipDataItem); + relationshipData.getRelationshipData().add(relationshipDataItem); RelatedToProperty relatedToProperty = new RelatedToProperty(); RelatedToPropertyItem item = new RelatedToPropertyItem(); item.propertyKey = "service-instance.service-instance-name"; item.propertyValue = "lll_svc_010317"; - relatedToProperty.relatedTo.add(item); + relatedToProperty.getRelatedTo().add(item); relationship.relatedTo = "service-instance"; relationship.relatedLink = "/aai/v11/business/customers/customer/MSO_1610_ST/service-subscriptions/service-subscription/MSO-dev-service-type/service-instances/service-instance/e1e9c97c-02c0-4919-9b4c-eb5d5ef68970"; relationship.relationshipData = relationshipData; relationship.relatedToProperty = relatedToProperty; - relationshipList.relationshipList.add(relationship); + relationshipList.getRelationshipList().add(relationship); response.relationshipList = relationshipList; return response; -- cgit 1.2.3-korg