Examples of CalendarISO8601Serializer


Examples of br.com.caelum.vraptor.serialization.iso8601.gson.CalendarISO8601Serializer

    assertThat(result, is(equalTo(expectedResult)));
  }

  @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"));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.