aboutsummaryrefslogtreecommitdiffstats
path: root/appc-common/src/test
diff options
context:
space:
mode:
authorkjaniak <kornel.janiak@nokia.com>2018-02-26 14:52:50 +0100
committerPatrick Brady <pb071s@att.com>2018-02-28 23:08:22 +0000
commitf5efd33ea7f230c52135b55ecd4ac254ea7de692 (patch)
treec775a4ead693ba191c90f7fcb02f588b1dbef394 /appc-common/src/test
parentb45d2ce251d5e93b26298dbe352ea01c171aad92 (diff)
Extraction of try catch in ConfigurationFactory
Try catch block placed in new private method getClonedDefaultConfiguration, minor changes added, UT for class added. Change-Id: Ic908e6d3a8fe179a2a38d922d10e24cff76a21da Issue-ID: APPC-674 Signed-off-by: kjaniak <kornel.janiak@nokia.com>
Diffstat (limited to 'appc-common/src/test')
-rw-r--r--appc-common/src/test/java/org/onap/appc/configuration/ConfigurationFactoryTest.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/appc-common/src/test/java/org/onap/appc/configuration/ConfigurationFactoryTest.java b/appc-common/src/test/java/org/onap/appc/configuration/ConfigurationFactoryTest.java
new file mode 100644
index 000000000..7d0206467
--- /dev/null
+++ b/appc-common/src/test/java/org/onap/appc/configuration/ConfigurationFactoryTest.java
@@ -0,0 +1,15 @@
+package org.onap.appc.configuration;
+
+import org.junit.Assert;
+import org.junit.Test;
+
+import static org.onap.appc.configuration.ConfigurationFactory.getConfiguration;
+
+public class ConfigurationFactoryTest {
+ @Test
+ public void should_returnDefaultConfiguration(){
+ Configuration conf = null;
+
+ Assert.assertTrue(getConfiguration() instanceof DefaultConfiguration);
+ }
+} \ No newline at end of file