summaryrefslogtreecommitdiffstats
path: root/appc-dispatcher/appc-dispatcher-common
diff options
context:
space:
mode:
authorSandeep J <sandeejh@in.ibm.com>2018-07-26 17:47:55 +0530
committerPatrick Brady <pb071s@att.com>2018-07-27 22:13:04 +0000
commit2c0de92cf9ade399f6afc05af3ae7211e2eeb425 (patch)
tree4f179c082286ee20a8c9f359052eff308f8d4e91 /appc-dispatcher/appc-dispatcher-common
parentc28e2c840bded5989cefb9b9d27f40f00766abb0 (diff)
added test case to TestCommonHeader.java
to increase code coverage Issue-ID: APPC-1086 Change-Id: I9ddee44a33daa768a73e7575ac5901b13e87237b Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
Diffstat (limited to 'appc-dispatcher/appc-dispatcher-common')
-rw-r--r--appc-dispatcher/appc-dispatcher-common/domain-model-lib/src/test/java/org/onap/appc/domainmodel/lcm/TestCommonHeader.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/appc-dispatcher/appc-dispatcher-common/domain-model-lib/src/test/java/org/onap/appc/domainmodel/lcm/TestCommonHeader.java b/appc-dispatcher/appc-dispatcher-common/domain-model-lib/src/test/java/org/onap/appc/domainmodel/lcm/TestCommonHeader.java
index 9f63a5022..c9774b2ca 100644
--- a/appc-dispatcher/appc-dispatcher-common/domain-model-lib/src/test/java/org/onap/appc/domainmodel/lcm/TestCommonHeader.java
+++ b/appc-dispatcher/appc-dispatcher-common/domain-model-lib/src/test/java/org/onap/appc/domainmodel/lcm/TestCommonHeader.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,8 @@ package org.onap.appc.domainmodel.lcm;
import static org.junit.Assert.*;
+import java.util.Date;
+
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
@@ -87,5 +91,12 @@ public class TestCommonHeader {
public void testToString_ContainsString() {
assertTrue(commonHeader.toString().contains("CommonHeader{flags"));
}
+
+ @Test
+ public void testTimeStamp() {
+ Date date=new Date();
+ commonHeader.setTimestamp(date);
+ assertEquals(date, commonHeader.getTimeStamp());
+ }
}