You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ha...@apache.org on 2012/04/10 17:29:20 UTC

svn commit: r1311791 - /camel/branches/camel-2.9.x/camel-core/src/test/java/org/apache/camel/processor/aggregator/AggregateTimeoutTest.java

Author: hadrian
Date: Tue Apr 10 15:29:19 2012
New Revision: 1311791

URL: http://svn.apache.org/viewvc?rev=1311791&view=rev
Log:
CS fix

Modified:
    camel/branches/camel-2.9.x/camel-core/src/test/java/org/apache/camel/processor/aggregator/AggregateTimeoutTest.java

Modified: camel/branches/camel-2.9.x/camel-core/src/test/java/org/apache/camel/processor/aggregator/AggregateTimeoutTest.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.9.x/camel-core/src/test/java/org/apache/camel/processor/aggregator/AggregateTimeoutTest.java?rev=1311791&r1=1311790&r2=1311791&view=diff
==============================================================================
--- camel/branches/camel-2.9.x/camel-core/src/test/java/org/apache/camel/processor/aggregator/AggregateTimeoutTest.java (original)
+++ camel/branches/camel-2.9.x/camel-core/src/test/java/org/apache/camel/processor/aggregator/AggregateTimeoutTest.java Tue Apr 10 15:29:19 2012
@@ -30,7 +30,7 @@ import org.apache.camel.processor.aggreg
  */
 public class AggregateTimeoutTest extends ContextTestSupport {
 
-    private static final AtomicInteger invoked = new AtomicInteger();
+    private static final AtomicInteger INVOKED = new AtomicInteger();
 
     public void testAggregateTimeout() throws Exception {
         MockEndpoint mock = getMockEndpoint("mock:aggregated");
@@ -45,7 +45,7 @@ public class AggregateTimeoutTest extend
         mock.assertIsSatisfied();
 
         // should invoke the timeout method
-        assertEquals(1, invoked.get());
+        assertEquals(1, INVOKED.get());
 
         // now send 3 which does not timeout
         mock.reset();
@@ -59,7 +59,7 @@ public class AggregateTimeoutTest extend
         mock.await(1500, TimeUnit.MILLISECONDS);
 
         // should not invoke the timeout method
-        assertEquals(1, invoked.get());
+        assertEquals(1, INVOKED.get());
     }
 
     @Override
@@ -81,7 +81,7 @@ public class AggregateTimeoutTest extend
     private static class MyAggregationStrategy implements TimeoutAwareAggregationStrategy {
 
         public void timeout(Exchange oldExchange, int index, int total, long timeout) {
-            invoked.incrementAndGet();
+            INVOKED.incrementAndGet();
 
             assertEquals(2000, timeout);
             assertEquals(-1, total);