diff options
Diffstat (limited to 'appc-common/src/test/java/org/onap/appc/util/MessageFormatterTest.java')
-rw-r--r-- | appc-common/src/test/java/org/onap/appc/util/MessageFormatterTest.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/appc-common/src/test/java/org/onap/appc/util/MessageFormatterTest.java b/appc-common/src/test/java/org/onap/appc/util/MessageFormatterTest.java new file mode 100644 index 000000000..27f309fa9 --- /dev/null +++ b/appc-common/src/test/java/org/onap/appc/util/MessageFormatterTest.java @@ -0,0 +1,18 @@ +package org.onap.appc.util; + +import java.util.HashMap; +import java.util.Map; +import org.junit.Assert; +import org.junit.Test; + +public class MessageFormatterTest { + + @Test + public void testEscapeDollarInMessgeFormatter() { + String msg = "${SYNC_NEW201}"; + Map<String, Object> respMsg = new HashMap<>(); + respMsg.put("vnfid", msg); + String formattedMsg = MessageFormatter.format(msg, respMsg); + Assert.assertEquals(msg, formattedMsg); + } +} |