From f782fc0b4a0995be191e127d33a592ad3b752cf4 Mon Sep 17 00:00:00 2001 From: Robert Davies Date: Tue, 2 Mar 2010 11:20:42 +0000 Subject: [PATCH] makesure assertEquals() is comparing to long values git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@917969 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/activemq/broker/scheduler/CronParserTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/activemq-core/src/test/java/org/apache/activemq/broker/scheduler/CronParserTest.java b/activemq-core/src/test/java/org/apache/activemq/broker/scheduler/CronParserTest.java index d8d0ef5586..de32a44aa9 100644 --- a/activemq-core/src/test/java/org/apache/activemq/broker/scheduler/CronParserTest.java +++ b/activemq-core/src/test/java/org/apache/activemq/broker/scheduler/CronParserTest.java @@ -39,7 +39,8 @@ public class CronParserTest { 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