* ================================================================================
* 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
import static org.junit.Assert.*;
+import java.util.HashMap;
+import java.util.Map;
+
import org.junit.Test;
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