X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=music-rest%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Fmusic%2Fmain%2FPropertiesLoader.java;h=3017b6d3e3c0ec250b9bc541d546ae768afe07cd;hb=7fda9bd76272ba4712fa810632ce252dfafe3363;hp=9c69b9e297add5381355870cc39784d64f6ebc71;hpb=3e7717442eceb670bfa69ddb27c9abe68e99a920;p=music.git 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"; + } }