Added in test that does NOT work for custom claim with Date type.

This commit is contained in:
Micah Silverman 2015-09-23 03:37:47 -04:00
parent 2e452a42b1
commit b4015be11e
1 changed files with 17 additions and 0 deletions

View File

@ -1327,4 +1327,21 @@ class JwtParserTest {
)
}
}
// @Test
// void testParseExpectedCustomDate_Success() {
// def aDate = new Date(System.currentTimeMillis())
//
// byte[] key = randomKey()
//
// String compact = Jwts.builder().signWith(SignatureAlgorithm.HS256, key).
// claim("aDate", aDate).
// compact()
//
// Jwt<Header,Claims> jwt = Jwts.parser().setSigningKey(key).
// expect("aDate", aDate).
// parseClaimsJws(compact)
//
// assertEquals jwt.getBody().get("aDate"), aDate
// }
}