empire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From franci...@apache.org
Subject svn commit: r1367430 - /empire-db/trunk/empire-db/src/test/java/org/apache/empire/commons/DateUtilsTest.java
Date Tue, 31 Jul 2012 06:59:56 GMT
Author: francisdb
Date: Tue Jul 31 06:59:55 2012
New Revision: 1367430

URL: http://svn.apache.org/viewvc?rev=1367430&view=rev
Log:
Fix unit test that fails on last day of month

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

Modified: empire-db/trunk/empire-db/src/test/java/org/apache/empire/commons/DateUtilsTest.java
URL: http://svn.apache.org/viewvc/empire-db/trunk/empire-db/src/test/java/org/apache/empire/commons/DateUtilsTest.java?rev=1367430&r1=1367429&r2=1367430&view=diff
==============================================================================
--- empire-db/trunk/empire-db/src/test/java/org/apache/empire/commons/DateUtilsTest.java (original)
+++ empire-db/trunk/empire-db/src/test/java/org/apache/empire/commons/DateUtilsTest.java Tue
Jul 31 06:59:55 2012
@@ -44,9 +44,9 @@ public class DateUtilsTest
 		Date date = DateUtils.getDateTimeFromNow(false, 1, 2, 3);
 		Calendar future = Calendar.getInstance();
 		future.setTime(date);
-		future.add(Calendar.DAY_OF_MONTH, -3);
-		future.add(Calendar.MONTH, -2);
 		future.add(Calendar.YEAR, -1);
+		future.add(Calendar.MONTH, -2);
+		future.add(Calendar.DAY_OF_MONTH, -3);
 
 		// this might fail when running exacly over midnight...
 		assertEquals(now.get(Calendar.YEAR), future.get(Calendar.YEAR));



Mime
View raw message