Added missing JacksonSupport unit test for Instant (#3507)

This commit is contained in:
Shams Asari 2018-07-04 15:39:22 +01:00 committed by GitHub
parent f19564f9f8
commit b8e6c47cfd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -391,6 +391,11 @@ class JacksonSupportTest(@Suppress("unused") private val name: String, factory:
testToStringSerialisation(UUID.randomUUID())
}
@Test
fun Instant() {
testToStringSerialisation(Instant.now())
}
@Test
fun `Date is treated as Instant`() {
val date = Date()