@Test public void testInstantFromPOJO() { JsonObject json = JsonObject.mapFrom(new MyType2()); // attempt to deserialize back to a instant, asserting for not null // already means that there was an attempt to parse a string to instant // and that the parsing succeeded (the object is of type instant and not null) assertNotNull(json.getInstant("isodate")); }
@Test public void testBase64FromPOJO() { JsonObject json = JsonObject.mapFrom(new MyType2()); // attempt to deserialize back to a byte[], asserting for not null // already means that there was an attempt to parse a string to byte[] // and that the parsing succeeded (the object is of type byte[] and not null) assertNotNull(json.getBinary("base64")); }
@Test public void testInstantFromPOJO() { JsonObject json = JsonObject.mapFrom(new MyType2()); // attempt to deserialize back to a instant, asserting for not null // already means that there was an attempt to parse a string to instant // and that the parsing succeeded (the object is of type instant and not null) assertNotNull(json.getInstant("isodate")); }
@Test public void testBase64FromPOJO() { JsonObject json = JsonObject.mapFrom(new MyType2()); // attempt to deserialize back to a byte[], asserting for not null // already means that there was an attempt to parse a string to byte[] // and that the parsing succeeded (the object is of type byte[] and not null) assertNotNull(json.getBinary("base64")); }