camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject [1/2] git commit: CAMEL-7964 Fixed the test failure of JettyRestRedirectTest in JDK7
Date Tue, 04 Nov 2014 10:53:28 GMT
Repository: camel
Updated Branches:
  refs/heads/master 864d0b891 -> cbad2d60b


CAMEL-7964 Fixed the test failure of JettyRestRedirectTest in JDK7


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/aeafbe38
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/aeafbe38
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/aeafbe38

Branch: refs/heads/master
Commit: aeafbe38641ba99fb039274a13d0b54ac9d0636a
Parents: 864d0b8
Author: Willem Jiang <willem.jiang@gmail.com>
Authored: Tue Nov 4 15:18:02 2014 +0800
Committer: Willem Jiang <willem.jiang@gmail.com>
Committed: Tue Nov 4 15:18:02 2014 +0800

----------------------------------------------------------------------
 .../apache/camel/component/jetty/rest/JettyRestRedirectTest.java | 4 ++--
 .../java/org/apache/camel/itest/jetty/JettyRestRedirectTest.java | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/aeafbe38/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/rest/JettyRestRedirectTest.java
----------------------------------------------------------------------
diff --git a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/rest/JettyRestRedirectTest.java
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/rest/JettyRestRedirectTest.java
index 86296c4..4838ec0 100644
--- a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/rest/JettyRestRedirectTest.java
+++ b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/rest/JettyRestRedirectTest.java
@@ -25,7 +25,7 @@ import org.junit.Test;
 public class JettyRestRedirectTest extends BaseJettyTest {
    
     @Test
-    public void testClasspath() throws Exception {
+    public void testRedirectInvocation() throws Exception {
         String response = template.requestBody("jetty:http://localhost:" + getPort2() + "/metadata/profile/tag?httpClient.supportRedirect=true",
"<hello>Camel</hello>", String.class);
         assertEquals("It should support the redirect out of box.", "Mock profile", response);
     }
@@ -36,7 +36,7 @@ public class JettyRestRedirectTest extends BaseJettyTest {
 
         return new RouteBuilder() {
             public void configure() {
-                restConfiguration().component("jetty").scheme("http").port(getPort2());
+                restConfiguration().component("jetty").host("localhost").scheme("http").port(getPort2());
                 rest("/metadata/profile")
                     .get("/{id}").to("direct:profileLookup")
                     .post("/tag").to("direct:tag");

http://git-wip-us.apache.org/repos/asf/camel/blob/aeafbe38/tests/camel-itest/src/test/java/org/apache/camel/itest/jetty/JettyRestRedirectTest.java
----------------------------------------------------------------------
diff --git a/tests/camel-itest/src/test/java/org/apache/camel/itest/jetty/JettyRestRedirectTest.java
b/tests/camel-itest/src/test/java/org/apache/camel/itest/jetty/JettyRestRedirectTest.java
index 81acf89..487e13e 100644
--- a/tests/camel-itest/src/test/java/org/apache/camel/itest/jetty/JettyRestRedirectTest.java
+++ b/tests/camel-itest/src/test/java/org/apache/camel/itest/jetty/JettyRestRedirectTest.java
@@ -28,7 +28,7 @@ public class JettyRestRedirectTest extends CamelTestSupport {
     private int port;
 
     @Test
-    public void testClasspath() throws Exception {
+    public void testRedirectInvocation() throws Exception {
         String response = template.requestBody("http4://localhost:" + port + "/metadata/profile/tag",
"<hello>Camel</hello>", String.class);
         assertEquals("It should support the redirect out of box.", "Mock profile", response);
     }
@@ -40,7 +40,7 @@ public class JettyRestRedirectTest extends CamelTestSupport {
 
         return new RouteBuilder() {
             public void configure() {
-                restConfiguration().component("jetty").scheme("http").port(port);
+                restConfiguration().component("jetty").host("localhost").scheme("http").port(port);
                 rest("/metadata/profile")
                     .get("/{id}").to("direct:profileLookup")
                     .post("/tag").to("direct:tag");


Mime
View raw message