diff options
author | Gadicherla, Shiva <sg592n@att.com> | 2020-03-02 21:15:50 +0000 |
---|---|---|
committer | Gadicherla, Shiva <sg592n@att.com> | 2020-03-02 22:09:52 +0000 |
commit | 7fda9bd76272ba4712fa810632ce252dfafe3363 (patch) | |
tree | bbc2974ac1f78de3077a7a14bf83330dc3e47dd2 /music-rest/src/main/java/org/onap/music/main/PropertiesLoader.java | |
parent | 9399b2eed91169c719acd9a966b4c5ed560897a8 (diff) |
Junit test case coverage for some classes in music-rest
Issue-ID: MUSIC-521
Signed-off-by: Gadicherla, Shiva <shiva.gadicherla@att.com>
Change-Id: I3be0da4c0f9e2cb052e9f2dcd3ce5931b8f59d9a
Diffstat (limited to 'music-rest/src/main/java/org/onap/music/main/PropertiesLoader.java')
-rw-r--r-- | music-rest/src/main/java/org/onap/music/main/PropertiesLoader.java | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/music-rest/src/main/java/org/onap/music/main/PropertiesLoader.java b/music-rest/src/main/java/org/onap/music/main/PropertiesLoader.java index 9c69b9e2..3017b6d3 100644 --- a/music-rest/src/main/java/org/onap/music/main/PropertiesLoader.java +++ b/music-rest/src/main/java/org/onap/music/main/PropertiesLoader.java @@ -90,7 +90,7 @@ public class PropertiesLoader implements InitializingBean { @Value("${create.lock.wait.increment.ms}") private int createLockWaitIncrement; - + @Value("${transId.header.prefix}") private String transIdPrefix; @@ -340,5 +340,33 @@ public class PropertiesLoader implements InitializingBean { // TODO Auto-generated method stub } + + /* For unit testing purpose only*/ + protected void setProperties() { + cassandraHost = "127.0.0.1"; + debug = "true"; + version = "x.x.x"; + build = "y.y"; + musicProperties = "property"; + lockLeasePeriod = "5000"; + cassandraUser = "user"; + cassandraPassword = "password"; + cassandraPort = "8007"; + cassandraConnectTimeOutMS = "1000"; + cassandraReadTimeOutMS = "1000"; + isCadi = "true"; + isKeyspaceActive = "true"; + rertryCount = "20"; + transIdPrefix = "transId-"; + conversationIdPrefix = "conversation-"; + clientIdPrefix = "clientId-"; + messageIdPrefix = "messageId-"; + transIdRequired = true; + conversationIdRequired = true; + clientIdRequired = true; + messageIdRequired = true; + musicAafNs = "ns"; + cipherEncKey = "key"; + } } |