diff options
author | bt2983 <bt2983@att.com> | 2020-03-02 14:02:39 -0700 |
---|---|---|
committer | Dan Timoney <dtimoney@att.com> | 2020-03-04 20:05:51 +0000 |
commit | 1ba9e49a2bedaee3e7a6cfbfdab7a0416a01ee20 (patch) | |
tree | 093b28bb1eac2bd87c902832ba52823ab70e81a4 /ms/neng/src/test/java | |
parent | ec939496820c47e41630b1572e5002c4c4d8da7b (diff) |
Naming micro-service - upgrade to policy decision API.
Issue-ID: CCSDK-1307
Signed-off-by: bt2983 <bt2983@att.com>
Change-Id: I03cb725a2ef5c187ce41a9d5ea242684fdcbc0f3
Diffstat (limited to 'ms/neng/src/test/java')
-rw-r--r-- | ms/neng/src/test/java/org/onap/ccsdk/apps/ms/neng/service/extinf/impl/PolicyFinderServiceImplTest.java | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/ms/neng/src/test/java/org/onap/ccsdk/apps/ms/neng/service/extinf/impl/PolicyFinderServiceImplTest.java b/ms/neng/src/test/java/org/onap/ccsdk/apps/ms/neng/service/extinf/impl/PolicyFinderServiceImplTest.java index b33550a3..7ce03cc5 100644 --- a/ms/neng/src/test/java/org/onap/ccsdk/apps/ms/neng/service/extinf/impl/PolicyFinderServiceImplTest.java +++ b/ms/neng/src/test/java/org/onap/ccsdk/apps/ms/neng/service/extinf/impl/PolicyFinderServiceImplTest.java @@ -71,13 +71,15 @@ public class PolicyFinderServiceImplTest { @Test public void testConfig() throws Exception { - doReturn(new GetConfigResponse()).when(policyFinder).makeOutboundCall(Matchers.any(), Matchers.any()); + doReturn(new GetConfigResponse()).when(policyFinder).makeOutboundCall( + Matchers.any(), Matchers.any(), Matchers.any()); assertNotNull(policyFinder.getConfig("policy")); } @Test public void testFindPolicy() throws Exception { - doReturn(new GetConfigResponse()).when(policyFinder).makeOutboundCall(Matchers.any(), Matchers.any()); + doReturn(new GetConfigResponse()).when(policyFinder).makeOutboundCall( + Matchers.any(), Matchers.any(), Matchers.any()); assertNull(policyFinder.findPolicy("policy")); } @@ -100,7 +102,7 @@ public class PolicyFinderServiceImplTest { GetConfigRequest request = new GetConfigRequest(); request.setPolicyName("policy"); - GetConfigResponse configResp = policyFinder.makeOutboundCall(request, GetConfigResponse.class); + GetConfigResponse configResp = policyFinder.makeOutboundCall("",request, GetConfigResponse.class); assertNotNull(configResp); } @@ -116,7 +118,7 @@ public class PolicyFinderServiceImplTest { GetConfigRequest request = new GetConfigRequest(); request.setPolicyName("policy"); - policyFinder.makeOutboundCall(request, GetConfigResponse.class); + policyFinder.makeOutboundCall("",request, GetConfigResponse.class); } @Test @@ -226,7 +228,7 @@ public class PolicyFinderServiceImplTest { policManProps.setUrl("http://policyManager.onap.org"); GetConfigRequest request = new GetConfigRequest(); request.setPolicyName("policy"); - policyFinder.makeOutboundCall(request, GetConfigResponse.class); + policyFinder.makeOutboundCall("", request, GetConfigResponse.class); } @SuppressWarnings("unchecked") @@ -237,7 +239,7 @@ public class PolicyFinderServiceImplTest { policManProps.setUrl("http://policyManager.onap.org"); GetConfigRequest request = new GetConfigRequest(); request.setPolicyName("policy"); - policyFinder.makeOutboundCall(request, GetConfigResponse.class); + policyFinder.makeOutboundCall("", request, GetConfigResponse.class); } @Test |