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 --- .../test/java/org/onap/policy/simulators/AaiSimulatorTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'controlloop/common/simulators/src/test/java') diff --git a/controlloop/common/simulators/src/test/java/org/onap/policy/simulators/AaiSimulatorTest.java b/controlloop/common/simulators/src/test/java/org/onap/policy/simulators/AaiSimulatorTest.java index 121a889f7..66c65ff82 100644 --- a/controlloop/common/simulators/src/test/java/org/onap/policy/simulators/AaiSimulatorTest.java +++ b/controlloop/common/simulators/src/test/java/org/onap/policy/simulators/AaiSimulatorTest.java @@ -84,13 +84,13 @@ public class AaiSimulatorTest { List>> tempInstanceFilter = new LinkedList<>(); tempInstanceFilter.add(tempOuterMap); AAINQInstanceFilters tempInstanceFilters = new AAINQInstanceFilters(); - tempInstanceFilters.instanceFilter = tempInstanceFilter; + tempInstanceFilters.setInstanceFilter(tempInstanceFilter); request.instanceFilters = tempInstanceFilters; AAINQResponse response = AAIManager.postQuery("http://localhost:6666", "testUser", "testPass", request, UUID.randomUUID()); assertNotNull(response); - assertNotNull(response.inventoryResponseItems); + assertNotNull(response.getInventoryResponseItems()); tempNamedQuery.namedQueryUUID = UUID.fromString("a93ac487-409c-4e8c-9e5f-334ae8f99087"); tempQueryParameters.namedQuery = tempNamedQuery; @@ -102,12 +102,12 @@ public class AaiSimulatorTest { tempInstanceFilter = new LinkedList<>(); tempInstanceFilter.add(tempOuterMap); tempInstanceFilters = new AAINQInstanceFilters(); - tempInstanceFilters.instanceFilter = tempInstanceFilter; + tempInstanceFilters.setInstanceFilter(tempInstanceFilter); request.instanceFilters = tempInstanceFilters; response = AAIManager.postQuery("http://localhost:6666", "testUser", "testPass", request, UUID.randomUUID()); assertNotNull(response); - assertNotNull(response.inventoryResponseItems); + assertNotNull(response.getInventoryResponseItems()); } } -- cgit 1.2.3-korg