You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2013/02/01 08:41:32 UTC
svn commit: r1441325 -
/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/aggregator/AggregateTimeoutTest.java
Author: ningjiang
Date: Fri Feb 1 07:41:32 2013
New Revision: 1441325
URL: http://svn.apache.org/viewvc?rev=1441325&view=rev
Log:
Fixed the CS error of AggregateTimeoutTest
Modified:
camel/trunk/camel-core/src/test/java/org/apache/camel/processor/aggregator/AggregateTimeoutTest.java
Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/processor/aggregator/AggregateTimeoutTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/aggregator/AggregateTimeoutTest.java?rev=1441325&r1=1441324&r2=1441325&view=diff
==============================================================================
--- camel/trunk/camel-core/src/test/java/org/apache/camel/processor/aggregator/AggregateTimeoutTest.java (original)
+++ camel/trunk/camel-core/src/test/java/org/apache/camel/processor/aggregator/AggregateTimeoutTest.java Fri Feb 1 07:41:32 2013
@@ -29,7 +29,7 @@ import org.apache.camel.processor.aggreg
*/
public class AggregateTimeoutTest extends ContextTestSupport {
- private final AtomicInteger INVOKED = new AtomicInteger();
+ private final AtomicInteger inovked = new AtomicInteger();
private volatile Exchange receivedExchange;
private volatile int receivedIndex;
private volatile int receivedTotal;
@@ -48,7 +48,7 @@ public class AggregateTimeoutTest extend
mock.assertIsSatisfied();
// should invoke the timeout method
- assertEquals(1, INVOKED.get());
+ assertEquals(1, inovked.get());
assertNotNull(receivedExchange);
assertEquals("AB", receivedExchange.getIn().getBody());
@@ -68,7 +68,7 @@ public class AggregateTimeoutTest extend
mock.assertIsSatisfied(1500);
// should have not invoked the timeout method anymore
- assertEquals(1, INVOKED.get());
+ assertEquals(1, inovked.get());
}
@Override
@@ -90,7 +90,7 @@ public class AggregateTimeoutTest extend
private class MyAggregationStrategy implements TimeoutAwareAggregationStrategy {
public void timeout(Exchange oldExchange, int index, int total, long timeout) {
- INVOKED.incrementAndGet();
+ inovked.incrementAndGet();
// we can't assert on the expected values here as the contract of this method doesn't
// allow to throw any Throwable (including AssertionFailedError) so that we assert