1 17 package org.alfresco.util; 18 19 import java.util.Date ; 20 21 import junit.framework.TestCase; 22 23 public class ISO8601DateFormatTest extends TestCase 24 { 25 26 public void testConversion() 27 { 28 System.out.println(Math.PI); 29 String test = "2005-09-16T17:01:03.456+01:00"; 30 Date date = ISO8601DateFormat.parse(test); 31 String strDate = ISO8601DateFormat.format(date); 32 assertEquals(test, strDate); 33 } 34 35 } 36 | Popular Tags |