You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2010/02/03 12:03:52 UTC

svn commit: r905992 - in /camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http: HttpGetTest.java HttpProxyTest.java HttpQueryGoogleTest.java

Author: davsclaus
Date: Wed Feb  3 11:03:47 2010
New Revision: 905992

URL: http://svn.apache.org/viewvc?rev=905992&view=rev
Log:
CAMEL-2441: Skipping test which requires online internet connection. Will be addressed in Camel 2.3 with a mocked server.

Modified:
    camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/HttpGetTest.java
    camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/HttpProxyTest.java
    camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/HttpQueryGoogleTest.java

Modified: camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/HttpGetTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/HttpGetTest.java?rev=905992&r1=905991&r2=905992&view=diff
==============================================================================
--- camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/HttpGetTest.java (original)
+++ camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/HttpGetTest.java Wed Feb  3 11:03:47 2010
@@ -25,6 +25,7 @@
 import org.apache.camel.builder.RouteBuilder;
 import org.apache.camel.component.mock.MockEndpoint;
 import org.apache.camel.test.junit4.CamelTestSupport;
+import org.junit.Ignore;
 import org.junit.Test;
 
 /**
@@ -34,6 +35,7 @@
     protected String expectedText = "activemq";
     
     @Test
+    @Ignore("ignore online tests, will be improved in Camel 2.3")
     public void testHttpGet() throws Exception {
         MockEndpoint mockEndpoint = resolveMandatoryEndpoint("mock:results", MockEndpoint.class);
         mockEndpoint.expectedMessageCount(1);

Modified: camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/HttpProxyTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/HttpProxyTest.java?rev=905992&r1=905991&r2=905992&view=diff
==============================================================================
--- camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/HttpProxyTest.java (original)
+++ camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/HttpProxyTest.java Wed Feb  3 11:03:47 2010
@@ -18,6 +18,7 @@
 
 import org.apache.camel.test.junit4.CamelTestSupport;
 import org.apache.commons.httpclient.HttpClient;
+import org.junit.Ignore;
 import org.junit.Test;
 
 /**
@@ -26,6 +27,7 @@
 public class HttpProxyTest extends CamelTestSupport {
 
     @Test
+    @Ignore("ignore online tests, will be improved in Camel 2.3")
     public void testNoHttpProxyConfigured() throws Exception {
         HttpEndpoint http = context.getEndpoint("http://www.google.com", HttpEndpoint.class);
 
@@ -35,6 +37,7 @@
     }
 
     @Test
+    @Ignore("ignore online tests, will be improved in Camel 2.3")
     public void testHttpProxyConfigured() throws Exception {
         HttpEndpoint http = context.getEndpoint("http://www.google.com", HttpEndpoint.class);
 
@@ -52,6 +55,7 @@
     }
 
     @Test
+    @Ignore("ignore online tests, will be improved in Camel 2.3")
     public void testHttpProxyEndpointConfigured() throws Exception {
         HttpEndpoint http = context.getEndpoint("http://www.google.com?proxyHost=myotherproxy&proxyPort=2345", HttpEndpoint.class);
 

Modified: camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/HttpQueryGoogleTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/HttpQueryGoogleTest.java?rev=905992&r1=905991&r2=905992&view=diff
==============================================================================
--- camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/HttpQueryGoogleTest.java (original)
+++ camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/HttpQueryGoogleTest.java Wed Feb  3 11:03:47 2010
@@ -17,6 +17,7 @@
 package org.apache.camel.component.http;
 
 import org.apache.camel.test.junit4.CamelTestSupport;
+import org.junit.Ignore;
 import org.junit.Test;
 
 
@@ -30,6 +31,7 @@
     }
 
     @Test
+    @Ignore("ignore online tests, will be improved in Camel 2.3")
     public void testQueryGoogle() throws Exception {
         Object out = template.requestBody("http://www.google.com/search?q=Camel", "");
         assertNotNull(out);