camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bvah...@apache.org
Subject svn commit: r1441336 - in /camel/trunk: camel-core/src/test/java/org/apache/camel/processor/aggregator/ components/camel-saxon/src/test/java/org/apache/camel/language/xpath/ components/camel-twitter/src/main/java/org/apache/camel/component/twitter/prod...
Date Fri, 01 Feb 2013 08:14:22 GMT
Author: bvahdat
Date: Fri Feb  1 08:14:22 2013
New Revision: 1441336

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

Modified:
    camel/trunk/camel-core/src/test/java/org/apache/camel/processor/aggregator/AggregateTimeoutTest.java
    camel/trunk/components/camel-saxon/src/test/java/org/apache/camel/language/xpath/XPathLanguageDefaultSettingsTest.java
    camel/trunk/components/camel-saxon/src/test/java/org/apache/camel/language/xpath/XPathLanguageTest.java
    camel/trunk/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/producer/SearchProducer.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=1441336&r1=1441335&r2=1441336&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 08:14:22 2013
@@ -29,7 +29,7 @@ import org.apache.camel.processor.aggreg
  */
 public class AggregateTimeoutTest extends ContextTestSupport {
 
-    private final AtomicInteger inovked = 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, inovked.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, inovked.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) {
-            inovked.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

Modified: camel/trunk/components/camel-saxon/src/test/java/org/apache/camel/language/xpath/XPathLanguageDefaultSettingsTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-saxon/src/test/java/org/apache/camel/language/xpath/XPathLanguageDefaultSettingsTest.java?rev=1441336&r1=1441335&r2=1441336&view=diff
==============================================================================
--- camel/trunk/components/camel-saxon/src/test/java/org/apache/camel/language/xpath/XPathLanguageDefaultSettingsTest.java
(original)
+++ camel/trunk/components/camel-saxon/src/test/java/org/apache/camel/language/xpath/XPathLanguageDefaultSettingsTest.java
Fri Feb  1 08:14:22 2013
@@ -19,8 +19,8 @@ package org.apache.camel.language.xpath;
 import javax.xml.xpath.XPathFactory;
 
 import org.apache.camel.component.mock.MockEndpoint;
-import org.apache.camel.test.spring.CamelSpringTestSupport;
 import org.apache.camel.test.junit4.TestSupport;
+import org.apache.camel.test.spring.CamelSpringTestSupport;
 import org.junit.Test;
 import org.springframework.context.support.AbstractXmlApplicationContext;
 import org.springframework.context.support.ClassPathXmlApplicationContext;

Modified: camel/trunk/components/camel-saxon/src/test/java/org/apache/camel/language/xpath/XPathLanguageTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-saxon/src/test/java/org/apache/camel/language/xpath/XPathLanguageTest.java?rev=1441336&r1=1441335&r2=1441336&view=diff
==============================================================================
--- camel/trunk/components/camel-saxon/src/test/java/org/apache/camel/language/xpath/XPathLanguageTest.java
(original)
+++ camel/trunk/components/camel-saxon/src/test/java/org/apache/camel/language/xpath/XPathLanguageTest.java
Fri Feb  1 08:14:22 2013
@@ -20,8 +20,8 @@ import javax.xml.xpath.XPathFactory;
 
 import org.apache.camel.Exchange;
 import org.apache.camel.component.mock.MockEndpoint;
-import org.apache.camel.test.spring.CamelSpringTestSupport;
 import org.apache.camel.test.junit4.TestSupport;
+import org.apache.camel.test.spring.CamelSpringTestSupport;
 import org.junit.Test;
 import org.springframework.context.support.AbstractXmlApplicationContext;
 import org.springframework.context.support.ClassPathXmlApplicationContext;

Modified: camel/trunk/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/producer/SearchProducer.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/producer/SearchProducer.java?rev=1441336&r1=1441335&r2=1441336&view=diff
==============================================================================
--- camel/trunk/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/producer/SearchProducer.java
(original)
+++ camel/trunk/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/producer/SearchProducer.java
Fri Feb  1 08:14:22 2013
@@ -16,6 +16,8 @@
  */
 package org.apache.camel.component.twitter.producer;
 
+import java.util.List;
+
 import org.apache.camel.CamelExchangeException;
 import org.apache.camel.Exchange;
 import org.apache.camel.component.twitter.TwitterConstants;
@@ -26,8 +28,6 @@ import twitter4j.QueryResult;
 import twitter4j.Status;
 import twitter4j.Twitter;
 
-import java.util.List;
-
 public class SearchProducer extends Twitter4JProducer {
 
     private volatile long lastId;
@@ -88,7 +88,7 @@ public class SearchProducer extends Twit
         List<Status> list = results.getTweets();
 
         for (int i = 1; i < numberOfPages; i++) {
-            if (results.hasNext() == false) {
+            if (!results.hasNext()) {
                 break;
             }
             log.debug("Fetching page");



Mime
View raw message