camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [1/3] camel git commit: Fixed test
Date Fri, 06 May 2016 06:51:30 GMT
Repository: camel
Updated Branches:
  refs/heads/master d10d5b33f -> f3a0f9397


Fixed test


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

Branch: refs/heads/master
Commit: dc7a21c6607d105abf49db6d673dc1cfeb4beb00
Parents: d10d5b3
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Fri May 6 08:41:41 2016 +0200
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Fri May 6 08:41:41 2016 +0200

----------------------------------------------------------------------
 .../component/undertow/UndertowPrefixMatchingTest.java   | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/dc7a21c6/components/camel-undertow/src/test/java/org/apache/camel/component/undertow/UndertowPrefixMatchingTest.java
----------------------------------------------------------------------
diff --git a/components/camel-undertow/src/test/java/org/apache/camel/component/undertow/UndertowPrefixMatchingTest.java
b/components/camel-undertow/src/test/java/org/apache/camel/component/undertow/UndertowPrefixMatchingTest.java
index dd227d8..f243b45 100644
--- a/components/camel-undertow/src/test/java/org/apache/camel/component/undertow/UndertowPrefixMatchingTest.java
+++ b/components/camel-undertow/src/test/java/org/apache/camel/component/undertow/UndertowPrefixMatchingTest.java
@@ -21,23 +21,19 @@ import org.apache.camel.Exchange;
 import org.apache.camel.builder.RouteBuilder;
 import org.apache.camel.http.common.HttpOperationFailedException;
 import org.junit.Test;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
 
 public class UndertowPrefixMatchingTest extends BaseUndertowTest {
-    private static final Logger LOG = LoggerFactory.getLogger(UndertowComponentTest.class);
 
     @Test
     public void passOnExactPath() throws Exception {
-        Exchange response = template.requestBody("http://localhost:{{port}}/myapp/suffix",
"Hello Camel!", Exchange.class);
+        template.requestBody("http://localhost:{{port}}/myapp/suffix", "Hello Camel!");
         getMockEndpoint("mock:myapp").expectedHeaderReceived(Exchange.HTTP_RESPONSE_CODE,
200);
     }
 
     @Test
     public void failsOnPrefixPath() throws Exception {
-
         try {
-            String response = template.requestBody("http://localhost:{{port}}/myapp", "Hello
Camel!", String.class);
+            template.requestBody("http://localhost:{{port}}/myapp", "Hello Camel!");
             fail("Should fail, something is wrong");
         } catch (CamelExecutionException ex) {
             HttpOperationFailedException cause = assertIsInstanceOf(HttpOperationFailedException.class,
ex.getCause());
@@ -47,11 +43,10 @@ public class UndertowPrefixMatchingTest extends BaseUndertowTest {
 
     @Test
     public void passOnPrefixPath() throws Exception {
-        Exchange response = template.requestBody("http://localhost:{{port}}/bar/somethingNotImportant",
"Hello Camel!", Exchange.class);
+        template.requestBody("http://localhost:{{port}}/bar/somethingNotImportant", "Hello
Camel!");
         getMockEndpoint("mock:myapp").expectedHeaderReceived(Exchange.HTTP_RESPONSE_CODE,
200);
     }
 
-
     @Override
     protected RouteBuilder createRouteBuilder() throws Exception {
         return new RouteBuilder() {


Mime
View raw message