empire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From franci...@apache.org
Subject svn commit: r748266 - /incubator/empire-db/trunk/empire-db/src/test/java/org/apache/empire/commons/DateUtilsTest.java
Date Thu, 26 Feb 2009 18:45:07 GMT
Author: francisdb
Date: Thu Feb 26 18:45:07 2009
New Revision: 748266

URL: http://svn.apache.org/viewvc?rev=748266&view=rev
Log:
corrected unit 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=748266&r1=748265&r2=748266&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
Thu Feb 26 18:45:07 2009
@@ -44,9 +44,10 @@
 		Date date = DateUtils.getDateTimeFromNow(false, 1, 2, 3);
 		Calendar future = Calendar.getInstance();
 		future.setTime(date);
-		future.add(Calendar.YEAR, -1);
-		future.add(Calendar.MONTH, -2);
 		future.add(Calendar.DAY_OF_MONTH, -3);
+		future.add(Calendar.MONTH, -2);
+		future.add(Calendar.YEAR, -1);
+
 		// this might fail when running exacly over midnight...
 		assertEquals(now.get(Calendar.YEAR), future.get(Calendar.YEAR));
 		assertEquals(now.get(Calendar.MONTH), future.get(Calendar.MONTH));



Mime
View raw message