X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=models-interactions%2Fmodel-impl%2Faai%2Fsrc%2Ftest%2Fjava%2Forg%2Fonap%2Fpolicy%2Faai%2FAaiManagerTest.java;h=33934d937d5e3ddeab648d12e6cdb2df7833a88b;hb=f7da60fabf647665d61f142a0d6ba9a9fc940106;hp=8a007fb4a54ab46ef3e66192f58732a7d103ec05;hpb=93e2ba2e1756596323774398673736946b220090;p=policy%2Fmodels.git diff --git a/models-interactions/model-impl/aai/src/test/java/org/onap/policy/aai/AaiManagerTest.java b/models-interactions/model-impl/aai/src/test/java/org/onap/policy/aai/AaiManagerTest.java index 8a007fb4a..33934d937 100644 --- a/models-interactions/model-impl/aai/src/test/java/org/onap/policy/aai/AaiManagerTest.java +++ b/models-interactions/model-impl/aai/src/test/java/org/onap/policy/aai/AaiManagerTest.java @@ -3,7 +3,7 @@ * aai * ================================================================================ * Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved. - * Modifications Copyright (C) 2019 Nordix Foundation. + * Modifications Copyright (C) 2019-2020 Nordix Foundation. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,10 +37,10 @@ import java.io.IOException; import java.nio.file.Files; import java.util.Map; import java.util.UUID; +import org.apache.commons.lang3.tuple.Pair; import org.junit.Before; import org.junit.Test; import org.onap.policy.rest.RestManager; -import org.onap.policy.rest.RestManager.Pair; public class AaiManagerTest { private static final String CQ_QUERY_URL = "http://testing.cq.query"; @@ -66,10 +66,10 @@ public class AaiManagerTest { String aaiCqResponse = new AaiCqResponseTest().getAaiCqResponse(); String tenantResponse = this.getTenantQueryResponse(); - httpCqResponseOk = restManagerMock.new Pair<>(200, aaiCqResponse); - httpTenantResponseOk = restManagerMock.new Pair<>(200, tenantResponse); - httpResponseErr0 = restManagerMock.new Pair<>(200, null); - httpResponseErr1 = restManagerMock.new Pair<>(200, "{"); + httpCqResponseOk = Pair.of(200, aaiCqResponse); + httpTenantResponseOk = Pair.of(200, tenantResponse); + httpResponseErr0 = Pair.of(200, null); + httpResponseErr1 = Pair.of(200, "{"); } @@ -128,7 +128,7 @@ public class AaiManagerTest { String pnfResponse = "{\"pnf-name\":" + pnfName + ",\"pnf-id\":\"123456\",\"in-maint\":false,\"ipaddress-v4-oam\":\"1.1.1.1\"}"; - Pair pnfHttpResponse = restManagerMock.new Pair<>(200, pnfResponse); + Pair pnfHttpResponse = Pair.of(200, pnfResponse); when(restManagerMock.get(contains(pnfName), eq(DOROTHY), eq("Gale"), anyMap())) .thenReturn(pnfHttpResponse);