aboutsummaryrefslogtreecommitdiffstats
path: root/appc-core/appc-common-bundle/src/test/java/org
diff options
context:
space:
mode:
authorSandeep J <sandeejh@in.ibm.com>2019-03-22 19:28:24 +0530
committerJoss Armstrong <joss.armstrong@ericsson.com>2019-03-22 17:23:27 +0000
commitbe4c0dc3f795ed2feae494e20f432466f8a7e0a9 (patch)
treee20405059a997536593e223e84680f05e84663fd /appc-core/appc-common-bundle/src/test/java/org
parentf9bbd30915d5bc66131baacb1e2f7bdf3cdcdb8f (diff)
added test case to TimeTest.java
to increase code coverage Issue-ID: APPC-1086 Change-Id: I9ed0192a67d594691f45978d2166b0992a40c656 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
Diffstat (limited to 'appc-core/appc-common-bundle/src/test/java/org')
-rw-r--r--appc-core/appc-common-bundle/src/test/java/org/onap/appc/util/TimeTest.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/appc-core/appc-common-bundle/src/test/java/org/onap/appc/util/TimeTest.java b/appc-core/appc-common-bundle/src/test/java/org/onap/appc/util/TimeTest.java
index 2678438ca..325c6eb5b 100644
--- a/appc-core/appc-common-bundle/src/test/java/org/onap/appc/util/TimeTest.java
+++ b/appc-core/appc-common-bundle/src/test/java/org/onap/appc/util/TimeTest.java
@@ -27,6 +27,7 @@ package org.onap.appc.util;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import java.text.ParseException;
@@ -144,6 +145,11 @@ public class TimeTest {
String expected = "2004-02-09 00:00:00:000";
assertEquals(expected, dateString);
}
+
+ @Test
+ public void testDateToStringConverterMillisForNullDate() {
+ assertNull(Time.dateToStringConverterMillis(null));
+ }
@Test
public void testStringToDateConverterMillis() throws ParseException {