Return-Path: X-Original-To: apmail-camel-commits-archive@www.apache.org Delivered-To: apmail-camel-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B1719EA49 for ; Fri, 1 Feb 2013 08:28:09 +0000 (UTC) Received: (qmail 37436 invoked by uid 500); 1 Feb 2013 08:28:09 -0000 Delivered-To: apmail-camel-commits-archive@camel.apache.org Received: (qmail 37340 invoked by uid 500); 1 Feb 2013 08:28:08 -0000 Mailing-List: contact commits-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list commits@camel.apache.org Received: (qmail 37331 invoked by uid 99); 1 Feb 2013 08:28:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2013 08:28:08 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2013 08:28:05 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 0B08E2388980; Fri, 1 Feb 2013 08:27:43 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1441337 - /camel/branches/camel-2.10.x/camel-core/src/test/java/org/apache/camel/processor/aggregator/AggregateTimeoutTest.java Date: Fri, 01 Feb 2013 08:27:42 -0000 To: commits@camel.apache.org From: bvahdat@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130201082743.0B08E2388980@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: bvahdat Date: Fri Feb 1 08:27:42 2013 New Revision: 1441337 URL: http://svn.apache.org/viewvc?rev=1441337&view=rev Log: Fixed CS. Modified: camel/branches/camel-2.10.x/camel-core/src/test/java/org/apache/camel/processor/aggregator/AggregateTimeoutTest.java Modified: camel/branches/camel-2.10.x/camel-core/src/test/java/org/apache/camel/processor/aggregator/AggregateTimeoutTest.java URL: http://svn.apache.org/viewvc/camel/branches/camel-2.10.x/camel-core/src/test/java/org/apache/camel/processor/aggregator/AggregateTimeoutTest.java?rev=1441337&r1=1441336&r2=1441337&view=diff ============================================================================== --- camel/branches/camel-2.10.x/camel-core/src/test/java/org/apache/camel/processor/aggregator/AggregateTimeoutTest.java (original) +++ camel/branches/camel-2.10.x/camel-core/src/test/java/org/apache/camel/processor/aggregator/AggregateTimeoutTest.java Fri Feb 1 08:27:42 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 invoked = 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, invoked.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, invoked.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(); + invoked.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