Package org.apache.wicket.core.util.lang

Examples of org.apache.wicket.core.util.lang.PropertyResolverConverter.convert()


    Calendar calDate = Calendar.getInstance();
    calDate.clear();
    calDate.set(2011, Calendar.APRIL, 17);
    Date date = calDate.getTime();

    Object actual = converter.convert(date, String.class);
    String expected = converterLocator.getConverter(Date.class).convertToString(date, locale);
    assertEquals(expected, actual);
  }

  /**
 
View Full Code Here


    Calendar calDate = Calendar.getInstance();
    calDate.clear();
    calDate.set(2011, Calendar.APRIL, 17);
    Date date = calDate.getTime();

    Object actual = converter.convert(date, Long.class);
    assertEquals(date.getTime(), actual);
  }
}
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.