Add test for "today" value

git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@543757 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Musachy Barroso
2007-06-02 16:58:33 +00:00
parent d00140ba9b
commit eec01916fb
@@ -58,6 +58,14 @@ public class DateTimePickerTagTest extends AbstractUITagTest {
.getResource("DateTimePickerTagTest-1.txt"));
}
public void testTodayValue() throws Exception {
DateTimePickerTag tag = new DateTimePickerTag();
tag.setPageContext(pageContext);
tag.setValue("%{'today'}");
assertDateValue("nameValue", tag, new Date(), true, false);
}
public void testDateParsing() throws Exception {
DateTimePickerTag tag = new DateTimePickerTag();
tag.setPageContext(pageContext);