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

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


  }
 
  @Test
  public void testDateToXmlGregorianCalendarConverter() {
    MapperFactory factory = MappingUtil.getMapperFactory();
    factory.getConverterFactory().registerConverter(new DateToXmlGregorianCalendarConverter());
    MapperFacade mapper = factory.getMapperFacade();
   
    Date now = new Date();
    XMLGregorianCalendar xml = mapper.map(now, XMLGregorianCalendar.class);
    Assert.assertEquals(now, xml.toGregorianCalendar().getTime());
View Full Code Here

TOP

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

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.