Examples of LongToDateConverter


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

Examples of org.auraframework.util.type.converter.LongToDateConverter

        return new IntegerToStringConverter();
    }

    @Impl
    public static Converter<?, ?> auraUtilLongToDateConverter() {
        return new LongToDateConverter();
    }
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.