diff options
author | Lathish <lathishbabu.ganesan@est.tech> | 2020-08-20 09:59:39 +0100 |
---|---|---|
committer | Lathishbabu Ganesan <lathishbabu.ganesan@est.tech> | 2020-08-24 15:22:38 +0000 |
commit | 923196e662717d8e631d89d29818b88db17e320a (patch) | |
tree | 51f7397a62407627266eddc57c8bd99028b842b8 /a1-adapter/a1-adapter-api/provider/src/test/java | |
parent | 749f96c4c4877bee554b4cf7d5d696e3e88c0af8 (diff) |
Added additional log information
Issue-ID: CCSDK-2604
Change-Id: I3b6e9759a9a31d694bc0ba488cd1d2dfb9bcfdb5
Signed-off-by: Lathish <lathishbabu.ganesan@est.tech>
Diffstat (limited to 'a1-adapter/a1-adapter-api/provider/src/test/java')
-rw-r--r-- | a1-adapter/a1-adapter-api/provider/src/test/java/org/onap/ccsdk/features/a1/adapter/A1AdapterProviderTest.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/a1-adapter/a1-adapter-api/provider/src/test/java/org/onap/ccsdk/features/a1/adapter/A1AdapterProviderTest.java b/a1-adapter/a1-adapter-api/provider/src/test/java/org/onap/ccsdk/features/a1/adapter/A1AdapterProviderTest.java index 8901ab07..a6588ea8 100644 --- a/a1-adapter/a1-adapter-api/provider/src/test/java/org/onap/ccsdk/features/a1/adapter/A1AdapterProviderTest.java +++ b/a1-adapter/a1-adapter-api/provider/src/test/java/org/onap/ccsdk/features/a1/adapter/A1AdapterProviderTest.java @@ -100,6 +100,7 @@ public class A1AdapterProviderTest { public void test_deleteA1PolicyType() throws SvcLogicException, InterruptedException, ExecutionException { String rpc = "deleteA1Policy"; Properties respProps = new Properties(); + respProps.setProperty("response-code", "200"); DeleteA1PolicyInputBuilder inputBuilder = new DeleteA1PolicyInputBuilder(); when(a1AdapterClient.hasGraph(module, rpc, null, mode)).thenReturn(true); when(a1AdapterClient.execute(eq(module), eq(rpc), eq(null), eq(mode), any(DeleteA1PolicyOutputBuilder.class), @@ -113,6 +114,7 @@ public class A1AdapterProviderTest { public void test_getA1Policy() throws SvcLogicException, InterruptedException, ExecutionException { String rpc = "getA1Policy"; Properties respProps = new Properties(); + respProps.setProperty("response-code", "200"); GetA1PolicyInputBuilder inputBuilder = new GetA1PolicyInputBuilder(); when(a1AdapterClient.hasGraph(module, rpc, null, mode)).thenReturn(true); when(a1AdapterClient.execute(eq(module), eq(rpc), eq(null), eq(mode), any(GetA1PolicyOutputBuilder.class), @@ -125,6 +127,7 @@ public class A1AdapterProviderTest { public void test_getA1PolicyType() throws SvcLogicException, InterruptedException, ExecutionException { String rpc = "getA1PolicyType"; Properties respProps = new Properties(); + respProps.setProperty("response-code", "200"); GetA1PolicyTypeInputBuilder inputBuilder = new GetA1PolicyTypeInputBuilder(); when(a1AdapterClient.hasGraph(module, rpc, null, mode)).thenReturn(true); when(a1AdapterClient.execute(eq(module), eq(rpc), eq(null), eq(mode), any(GetA1PolicyTypeOutputBuilder.class), @@ -138,6 +141,7 @@ public class A1AdapterProviderTest { public void test_getA1PolicyStatus() throws SvcLogicException, InterruptedException, ExecutionException { String rpc = "getA1PolicyStatus"; Properties respProps = new Properties(); + respProps.setProperty("response-code", "200"); GetA1PolicyStatusInputBuilder inputBuilder = new GetA1PolicyStatusInputBuilder(); when(a1AdapterClient.hasGraph(module, rpc, null, mode)).thenReturn(true); when(a1AdapterClient.execute(eq(module), eq(rpc), eq(null), eq(mode), any(GetA1PolicyStatusOutputBuilder.class), @@ -151,6 +155,7 @@ public class A1AdapterProviderTest { public void test_putA1Policy() throws SvcLogicException, InterruptedException, ExecutionException { String rpc = "putA1Policy"; Properties respProps = new Properties(); + respProps.setProperty("response-code", "200"); PutA1PolicyInputBuilder inputBuilder = new PutA1PolicyInputBuilder(); when(a1AdapterClient.hasGraph(module, rpc, null, mode)).thenReturn(true); when(a1AdapterClient.execute(eq(module), eq(rpc), eq(null), eq(mode), any(PutA1PolicyOutputBuilder.class), |