Update license header in appc-event-listener files
[appc.git] / appc-event-listener / appc-event-listener-bundle / src / test / java / org / onap / appc / listener / LCM / model / DmaapMessageTest.java
index 4d6d03b..0c204df 100644 (file)
@@ -2,7 +2,7 @@
  * ============LICENSE_START=======================================================
  * ONAP : APPC
  * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
  * ================================================================================
  * Copyright (C) 2018 Nokia Solutions and Networks
  * =============================================================================
  * See the License for the specific language governing permissions and
  * limitations under the License.
  * 
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
  * ============LICENSE_END=========================================================
  */
 package org.onap.appc.listener.LCM.model;
 
 import static org.junit.Assert.assertEquals;
+import static org.onap.appc.listener.TestUtil.JSON_INPUT_BODY_STR;
 
 import com.fasterxml.jackson.databind.JsonNode;
 import org.junit.Before;
@@ -32,12 +32,6 @@ import org.onap.appc.listener.util.Mapper;
 
 public class DmaapMessageTest {
 
-    private static final String jsonInputBodyStr =
-        "{\"input\":{ \"common-header\": { \"timestamp\": \"2016-08-03T08:50:18.97Z\", "
-            + "\"api-ver\": \"1\", \"originator-id\": \"1\", \"request-id\": \"123\", \"sub-request-id\": \"1\", "
-            + "\"flags\": { \"force\":\"TRUE\", \"ttl\":\"9900\" } }, \"action\": \"Stop\", "
-            + "\"action-identifiers\": { \"vnf-id\": \"TEST\" } }}";
-
     private DmaapMessage dmaapMessage;
 
     @Before
@@ -48,7 +42,7 @@ public class DmaapMessageTest {
     @Test
     public void should_set_properties() {
 
-        JsonNode jsonNode = Mapper.toJsonNodeFromJsonString(jsonInputBodyStr);
+        JsonNode jsonNode = Mapper.toJsonNodeFromJsonString(JSON_INPUT_BODY_STR);
 
         dmaapMessage.setVersion("test-version");
         dmaapMessage.setType("test-type");
@@ -67,7 +61,7 @@ public class DmaapMessageTest {
 
     @Test
     public void toString_should_return_valid_string_representation() {
-        JsonNode jsonNode = Mapper.toJsonNodeFromJsonString(jsonInputBodyStr);
+        JsonNode jsonNode = Mapper.toJsonNodeFromJsonString(JSON_INPUT_BODY_STR);
 
         dmaapMessage.setVersion("test-version");
         dmaapMessage.setType("test-type");