activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r917969 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/scheduler/CronParserTest.java
Date Tue, 02 Mar 2010 11:20:43 GMT
Author: rajdavies
Date: Tue Mar  2 11:20:42 2010
New Revision: 917969

URL: http://svn.apache.org/viewvc?rev=917969&view=rev
Log:
makesure assertEquals() is comparing to long values

Modified:
    activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/scheduler/CronParserTest.java

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/scheduler/CronParserTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/scheduler/CronParserTest.java?rev=917969&r1=917968&r2=917969&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/scheduler/CronParserTest.java
(original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/scheduler/CronParserTest.java
Tue Mar  2 11:20:42 2010
@@ -39,7 +39,8 @@
         long current = 60*1000*60*5;
         long next = CronParser.getNextScheduledTime(test, current);
         long result = next - current;
-        assertEquals(60*1000*60*18,result);
+        long expected = 60*1000*60*18;
+        assertEquals(expected,result);
     }
     
     @Test



Mime
View raw message