Package ma.glasnost.orika.converter.builtin.DateAndTimeConverters

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


  }
 
  @Test
  public void testLongToDateConverter() {
    MapperFactory factory = MappingUtil.getMapperFactory();
    factory.getConverterFactory().registerConverter(new LongToDateConverter());
    MapperFacade mapper = factory.getMapperFacade();
   
    long now = System.currentTimeMillis();
    Date date = mapper.map(now, Date.class);
    Assert.assertEquals(now, date.getTime());
View Full Code Here

TOP

Related Classes of ma.glasnost.orika.converter.builtin.DateAndTimeConverters.LongToDateConverter

Copyright © 2018 www.massapicom. 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.