@Test public void testSerialize() throws Exception { JsonElement element = uriTypeAdapter.serialize(uri, URI.class, serializationContext); assertEquals( new JsonPrimitive("git://github.com/damiancarrillo/agave-web-framework.git"), element); }
@Test public void testSerialize_withNull() throws Exception { assertNullElement(uriTypeAdapter.serialize(null, URI.class, serializationContext)); }
@Test public void testDeserialize_withNullURI() throws Exception { assertNull(uriTypeAdapter.deserialize(JsonNull.INSTANCE, URI.class, deserializationContext)); }