summaryrefslogtreecommitdiffstats
path: root/appc-common
diff options
context:
space:
mode:
authorSandeep J <sandeejh@in.ibm.com>2018-08-03 17:14:35 +0530
committerTakamune Cho <tc012c@att.com>2018-08-06 23:39:45 +0000
commit171b07e5ed1b99dbe130b55726fc9ec65d4432ea (patch)
tree68ede6975d283ae5ab0a75e35c06769b97e04532 /appc-common
parent1267640ca31c536d761429207983aff8b9168ef0 (diff)
added test case to DefaultConfigurationTest.java
to increase code coverage Issue-ID: APPC-1086 Change-Id: I4b0f1f352fa8b90810b7efc145e83edebff913da Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
Diffstat (limited to 'appc-common')
-rw-r--r--appc-common/src/test/java/org/onap/appc/configuration/DefaultConfigurationTest.java13
1 files changed, 12 insertions, 1 deletions
diff --git a/appc-common/src/test/java/org/onap/appc/configuration/DefaultConfigurationTest.java b/appc-common/src/test/java/org/onap/appc/configuration/DefaultConfigurationTest.java
index f43d81a64..aed414192 100644
--- a/appc-common/src/test/java/org/onap/appc/configuration/DefaultConfigurationTest.java
+++ b/appc-common/src/test/java/org/onap/appc/configuration/DefaultConfigurationTest.java
@@ -6,6 +6,8 @@
* ================================================================================
* Copyright (C) 2017 Amdocs
* =============================================================================
+ * Modification Copyright (C) 2018 IBM.
+ * =============================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@@ -103,7 +105,16 @@ public class DefaultConfigurationTest {
defaultConfiguration.setProperty(booleanKey, "abc");
Assert.assertFalse(defaultConfiguration.getBooleanProperty(booleanKey));
}
-
+
+ @Test
+ public void testSetPropAndGetBooleanPropertyForEncryptedValue()
+ {
+ String booleanKey = "booleanKey";
+ defaultConfiguration.setProperty(booleanKey, "enc:true");
+ Assert.assertFalse(defaultConfiguration.getBooleanProperty(booleanKey));
+ }
+
+
@Test
public void testSetPropAndGetBooleanPropertyWithDefaultValue() throws Exception {
String booleanKey = "booleanKey";