diff options
author | ezhil <ezhrajam@in.ibm.com> | 2018-09-26 20:14:28 +0530 |
---|---|---|
committer | Ezhilarasi R <ezhrajam@in.ibm.com> | 2018-09-26 22:23:12 +0000 |
commit | ebe7b8af0ed014ef487f4ca7d2e0e9153a4d34f6 (patch) | |
tree | d1203b1dd7a902ee6fa33c176f4073a992f2802c /ecomp-sdk/epsdk-analytics | |
parent | afb7e4d6b9895146d5d7e27a7568a6360ca50ce3 (diff) |
Added test case to FusionAdapter
Added test case to Fusion adapter
Issue-ID: PORTAL-405
Change-Id: I2de73fc1a1e3e351f2fbe76db666601bf1892cf7
Signed-off-by: ezhil <ezhrajam@in.ibm.com>
Diffstat (limited to 'ecomp-sdk/epsdk-analytics')
-rw-r--r-- | ecomp-sdk/epsdk-analytics/src/test/java/org/onap/portalsdk/analytics/system/fusion/adapter/FusionAdapterTest.java | 10 |
1 files changed, 9 insertions, 1 deletions
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<String,ComboPooledDataSource> dataSourceMap; + Map<String,ComboPooledDataSource> 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); + } + } |