979899100101102103
} @Test public void passOneDate() throws Exception { caller.call("testSlim", "oneDate", "5-May-2009"); assertEquals((Date) new DateConverter().fromString("5-May-2009"), testSlim.getDateArg()); }
12131415161718
import org.junit.Test; public class ConverterTest { @Test public void convertDate() throws Exception { assertConverts(new DateConverter(), "05-May-2009"); }
17181920212223
assertConverts(new DateConverter(), "05-May-2009"); } @Test public void convertDateWithoutLeadingZero() throws Exception { assertConverts("05-May-2009", new DateConverter(), "5-May-2009"); }