Author: sergeyhalipov
Date: 2008-03-28 11:45:20 -0400 (Fri, 28 Mar 2008)
New Revision: 7366
Modified:
trunk/ui/calendar/src/test/java/org/richfaces/component/CalendarComponentTest.java
Log:
Some small fix for calendar test.
Modified:
trunk/ui/calendar/src/test/java/org/richfaces/component/CalendarComponentTest.java
===================================================================
---
trunk/ui/calendar/src/test/java/org/richfaces/component/CalendarComponentTest.java 2008-03-28
15:06:30 UTC (rev 7365)
+++
trunk/ui/calendar/src/test/java/org/richfaces/component/CalendarComponentTest.java 2008-03-28
15:45:20 UTC (rev 7366)
@@ -285,7 +285,7 @@
public void testCalendarTime() throws Exception{
Calendar calendarObject = Calendar.getInstance();
calendarObject.set(2001, Calendar.SEPTEMBER, 11, 13, 36);
- assertEquals(0,
calendarObject.getTime().compareTo((Date)calendar2.getSubmittedValue()));
+ assertEquals(calendarObject.getTime().toString(),
calendar2.getSubmittedValue().toString());
}