aboutsummaryrefslogtreecommitdiffstats
path: root/appc-dispatcher
diff options
context:
space:
mode:
Diffstat (limited to 'appc-dispatcher')
-rw-r--r--appc-dispatcher/appc-command-executor/appc-command-executor-api/src/test/java/org/onap/appc/executor/objects/TestLCMCommandStatus.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/appc-dispatcher/appc-command-executor/appc-command-executor-api/src/test/java/org/onap/appc/executor/objects/TestLCMCommandStatus.java b/appc-dispatcher/appc-command-executor/appc-command-executor-api/src/test/java/org/onap/appc/executor/objects/TestLCMCommandStatus.java
index 04c8a69d4..f778357e4 100644
--- a/appc-dispatcher/appc-command-executor/appc-command-executor-api/src/test/java/org/onap/appc/executor/objects/TestLCMCommandStatus.java
+++ b/appc-dispatcher/appc-command-executor/appc-command-executor-api/src/test/java/org/onap/appc/executor/objects/TestLCMCommandStatus.java
@@ -4,6 +4,8 @@
* ================================================================================
* Copyright 2018 TechMahindra
*=================================================================================
+* Modifications Copyright 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
@@ -21,6 +23,9 @@ package org.onap.appc.executor.objects;
import static org.junit.Assert.*;
+import java.util.HashMap;
+import java.util.Map;
+
import org.junit.Test;
public class TestLCMCommandStatus {
@@ -59,4 +64,17 @@ public class TestLCMCommandStatus {
public void testTostring() {
assertTrue(accepted.toString().contains(accepted.name()));
}
+
+ @Test
+ public void testGetFormattedMessageWithCode() {
+ Params params= new Params();
+ Map<String, java.lang.Object> map = new HashMap<String, java.lang.Object>();
+ map.put("testKey1", "testValue1");
+ map.put("testKey2", "testValue2");
+ params.setParams(map);
+ String response=accepted.getFormattedMessageWithCode(params);
+ String expected="100-ACCEPTED - request accepted";
+ assertEquals(expected, response);
+ }
+
} \ No newline at end of file