From 681a3fc0bad92e61a15f4df36c7d10b7ebcc4dd7 Mon Sep 17 00:00:00 2001 From: Micah Silverman Date: Wed, 23 Sep 2015 17:20:02 -0400 Subject: [PATCH] Added coverage test for JwtMap. --- src/test/groovy/io/jsonwebtoken/impl/JwtMapTest.groovy | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/test/groovy/io/jsonwebtoken/impl/JwtMapTest.groovy b/src/test/groovy/io/jsonwebtoken/impl/JwtMapTest.groovy index 1b155b3e..0d00f6d7 100644 --- a/src/test/groovy/io/jsonwebtoken/impl/JwtMapTest.groovy +++ b/src/test/groovy/io/jsonwebtoken/impl/JwtMapTest.groovy @@ -20,6 +20,12 @@ import static org.junit.Assert.* class JwtMapTest { + @Test + void testToDateFromNull() { + Date actual = JwtMap.toDate(null, 'foo') + assertNull actual + } + @Test void testToDateFromDate() {