diff options
Diffstat (limited to 'ecomp-sdk/epsdk-analytics/src/test')
2 files changed, 15 insertions, 1 deletions
diff --git a/ecomp-sdk/epsdk-analytics/src/test/java/org/onap/portalsdk/analytics/gmap/map/ColorPropertiesTest.java b/ecomp-sdk/epsdk-analytics/src/test/java/org/onap/portalsdk/analytics/gmap/map/ColorPropertiesTest.java index 07d9a926..b6dc00e4 100644 --- a/ecomp-sdk/epsdk-analytics/src/test/java/org/onap/portalsdk/analytics/gmap/map/ColorPropertiesTest.java +++ b/ecomp-sdk/epsdk-analytics/src/test/java/org/onap/portalsdk/analytics/gmap/map/ColorPropertiesTest.java @@ -61,6 +61,7 @@ public class ColorPropertiesTest { colorProperties.setColor(TYPE, COLOR); colorProperties.setShape(TYPE, SHAPE); colorProperties.setSize(TYPE, SIZE); + colorProperties.setSize(TYPE, NUMBER, SIZE); colorProperties.setShape(TYPE, NUMBER, SHAPE); } @@ -90,4 +91,9 @@ public class ColorPropertiesTest { public void testGetSize() { assertEquals(100, colorProperties.getSize(TYPE)); } + + @Test + public void testGetSizeWithNumber() { + assertEquals(100, colorProperties.getSize(TYPE, NUMBER)); + } } 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); + } + } |