Examples of LongToCalendarConverter


Examples of ma.glasnost.orika.converter.builtin.DateAndTimeConverters.LongToCalendarConverter

  }

  @Test
  public void testLongToCalendarConverter() {
    MapperFactory factory = MappingUtil.getMapperFactory();
    factory.getConverterFactory().registerConverter(new LongToCalendarConverter());
    MapperFacade mapper = factory.getMapperFacade();
   
    long now = System.currentTimeMillis();
    Calendar cal = mapper.map(now, Calendar.class);
    Assert.assertEquals(now, cal.getTimeInMillis());
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.