1 package com.blandware.atleap.common.util; 2 3 import junit.framework.TestCase; 4 import org.apache.commons.logging.Log; 5 import org.apache.commons.logging.LogFactory; 6 7 public class DateUtilTest extends TestCase { 8 10 private Log log = LogFactory.getLog(DateUtilTest.class); 11 String sampleDate = "10-Jan-2003"; 12 13 15 public DateUtilTest(String name) { 16 super(name); 17 } 18 19 21 protected void setUp() throws Exception { 22 super.setUp(); 23 } 24 25 protected void tearDown() throws Exception { 26 super.tearDown(); 27 } 28 29 public void testGetDatePattern() throws Exception { 30 String pattern = DateUtil.getDatePattern(); 31 assertTrue(pattern.equals("MM/dd/yyyy")); 32 } 33 34 public void testGetDate() throws Exception { 35 } 47 48 public static void main(String [] args) { 49 junit.textui.TestRunner.run(DateUtilTest.class); 50 } 51 } 52 | Popular Tags |