empire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From franci...@apache.org
Subject svn commit: r747215 - /incubator/empire-db/trunk/empire-db/src/test/java/org/apache/empire/commons/DateUtilsTest.java
Date Mon, 23 Feb 2009 23:38:35 GMT
Author: francisdb
Date: Mon Feb 23 23:38:34 2009
New Revision: 747215

URL: http://svn.apache.org/viewvc?rev=747215&view=rev
Log:
corrected test

Modified:
    incubator/empire-db/trunk/empire-db/src/test/java/org/apache/empire/commons/DateUtilsTest.java

Modified: incubator/empire-db/trunk/empire-db/src/test/java/org/apache/empire/commons/DateUtilsTest.java
URL: http://svn.apache.org/viewvc/incubator/empire-db/trunk/empire-db/src/test/java/org/apache/empire/commons/DateUtilsTest.java?rev=747215&r1=747214&r2=747215&view=diff
==============================================================================
--- incubator/empire-db/trunk/empire-db/src/test/java/org/apache/empire/commons/DateUtilsTest.java
(original)
+++ incubator/empire-db/trunk/empire-db/src/test/java/org/apache/empire/commons/DateUtilsTest.java
Mon Feb 23 23:38:34 2009
@@ -218,9 +218,9 @@
 	{
 		Calendar cal = simpleCalendar();
 		String formatted = DateUtils.formatTime(cal.getTime(), Locale.FRANCE, true);
-		assertEquals("16:05:06", formatted);
+		assertEquals("04:05:06", formatted);
 		formatted = DateUtils.formatTime(cal.getTime(), Locale.FRANCE, false);
-		assertEquals("16:05", formatted);
+		assertEquals("04:05", formatted);
 	}
 
 	/**
@@ -297,7 +297,7 @@
 		cal.set(Calendar.YEAR, 1);
 		cal.set(Calendar.MONTH, 2);
 		cal.set(Calendar.DAY_OF_MONTH, 3);
-		cal.set(Calendar.HOUR, 4);
+		cal.set(Calendar.HOUR_OF_DAY, 4);
 		cal.set(Calendar.MINUTE, 5);
 		cal.set(Calendar.SECOND, 6);
 		cal.set(Calendar.MILLISECOND, 7);



Mime
View raw message