From ebe7b8af0ed014ef487f4ca7d2e0e9153a4d34f6 Mon Sep 17 00:00:00 2001 From: ezhil Date: Wed, 26 Sep 2018 20:14:28 +0530 Subject: Added test case to FusionAdapter Added test case to Fusion adapter Issue-ID: PORTAL-405 Change-Id: I2de73fc1a1e3e351f2fbe76db666601bf1892cf7 Signed-off-by: ezhil --- .../analytics/system/fusion/adapter/FusionAdapterTest.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ecomp-sdk/epsdk-analytics/src/test/java/org/onap/portalsdk/analytics/system/fusion/adapter/FusionAdapterTest.java b/ecomp-sdk/epsdk-analytics/src/test/java/org/onap/portalsdk/analytics/system/fusion/adapter/FusionAdapterTest.java index 27bd839b..4600ac89 100644 --- a/ecomp-sdk/epsdk-analytics/src/test/java/org/onap/portalsdk/analytics/system/fusion/adapter/FusionAdapterTest.java +++ b/ecomp-sdk/epsdk-analytics/src/test/java/org/onap/portalsdk/analytics/system/fusion/adapter/FusionAdapterTest.java @@ -45,8 +45,10 @@ public class FusionAdapterTest { FusionAdapter fa=new FusionAdapter(); ComboPooledDataSource dataSource; - Map dataSourceMap; + Map dataSourceMap; ServletContext servletContext; + + @Test public void test() { fa.setDataSource(dataSource); @@ -55,4 +57,10 @@ public class FusionAdapterTest { assertEquals(fa.getDataSource(), dataSource); assertEquals(fa.getServletContext(), servletContext); } + + @Test + public void releaseConnectionTest() throws Exception{ + fa.releaseConnection(null); + } + } -- cgit 1.2.3-korg