@Test public void shouldSerializeCalendarLikeISO8601() { GsonJSONSerialization serialization = serializationWithAdapter(new CalendarISO8601Serializer(new ISO8601Util())); Client c = new Client("Rafael"); c.included = new GregorianCalendar(2013, 6, 27, 9, 52, 38); c.included.setTimeZone(TimeZone.getTimeZone("America/Sao_Paulo")); serialization.from(c).serialize(); String result = result(); String expectedResult = "{\"client\":{\"name\":\"Rafael\",\"included\":\"2013-07-27T09:52:38.000-0300\"}}"; assertThat(result, is(equalTo(expectedResult))); }
public <T> Serializer from(T object) { return from(object, null); }
GsonJSONSerialization implements JSONSerialization { public <T> Serializer from(T object) { return from(object, null); } }
GsonJSONSerialization implements JSONSerialization { public <T> Serializer from(T object) { return from(object, null); } GsonJSONSerialization(HttpServletResponse response, TypeNameExtractor extractor,
			ProxyInitializer initializer, VRaptorGsonBuilder builder, Serializee serializee); }
GsonJSONSerialization implements JSONSerialization { public <T> Serializer from(T object) { return from(object, null); } GsonJSONSerialization(HttpServletResponse response, TypeNameExtractor extractor,
			ProxyInitializer initializer, VRaptorGsonBuilder builder, Serializee serializee); boolean accepts(String format); Serializer from(T object); Serializer from(T object, String alias); NoRootSerialization withoutRoot(); JSONSerialization indented(); }
GsonJSONSerialization implements JSONSerialization { public <T> Serializer from(T object) { return from(object, null); } GsonJSONSerialization(HttpServletResponse response, TypeNameExtractor extractor,
			ProxyInitializer initializer, VRaptorGsonBuilder builder, Serializee serializee); boolean accepts(String format); Serializer from(T object); Serializer from(T object, String alias); NoRootSerialization withoutRoot(); JSONSerialization indented();  }