Package net.buffalo.protocal.converters.basic

Examples of net.buffalo.protocal.converters.basic.DateConverter.unmarshal()


    assertEquals("<>&HH", s);
  }
 
  public void testCouldGetDate() throws Exception {
    DateConverter dd = new DateConverter();
    Date d = (Date)dd.unmarshal(TestUtils.createStreamReader("<date>20060803T090127Z</date>"), null);
    Calendar cal = Calendar.getInstance();
    cal.setTime(d);
    assertEquals(2006, cal.get(Calendar.YEAR));
    assertEquals(Calendar.AUGUST, cal.get(Calendar.MONTH));
    assertEquals(3, cal.get(Calendar.DAY_OF_MONTH));
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.