mirror of
https://github.com/apache/struts.git
synced 2026-08-07 15:46:57 +00:00
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:
+8
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user