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

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


 
  @Test
  public void testDateToCalendarConverter() {
    MapperFactory factory = MappingUtil.getMapperFactory();
    factory.getConverterFactory().registerConverter(new DateToCalendarConverter());
    MapperFacade mapper = factory.getMapperFacade();
   
    Date now = new Date();
    Calendar cal = mapper.map(now, Calendar.class);
    Assert.assertEquals(now, cal.getTime());
View Full Code Here

TOP

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

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.