You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2017/02/01 14:51:57 UTC

camel git commit: Fixed camel-http4 tests

Repository: camel
Updated Branches:
  refs/heads/master e93b5b400 -> e16315825


Fixed camel-http4 tests


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

Branch: refs/heads/master
Commit: e16315825770a93cb6a68322ec2f13fc3a67ae7c
Parents: e93b5b4
Author: Andrea Cosentino <an...@gmail.com>
Authored: Wed Feb 1 15:51:05 2017 +0100
Committer: Andrea Cosentino <an...@gmail.com>
Committed: Wed Feb 1 15:51:38 2017 +0100

----------------------------------------------------------------------
 .../org/apache/camel/component/http4/HttpMethodsTest.java    | 8 ++++----
 .../camel/component/http4/HttpProducerContentTypeTest.java   | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/e1631582/components/camel-http4/src/test/java/org/apache/camel/component/http4/HttpMethodsTest.java
----------------------------------------------------------------------
diff --git a/components/camel-http4/src/test/java/org/apache/camel/component/http4/HttpMethodsTest.java b/components/camel-http4/src/test/java/org/apache/camel/component/http4/HttpMethodsTest.java
index f9c7a5b..a65371d 100644
--- a/components/camel-http4/src/test/java/org/apache/camel/component/http4/HttpMethodsTest.java
+++ b/components/camel-http4/src/test/java/org/apache/camel/component/http4/HttpMethodsTest.java
@@ -96,11 +96,11 @@ public class HttpMethodsTest extends BaseHttpTest {
 
         Message out = exchange.getOut();
         Map<String, Object> headers = out.getHeaders();
-        assertEquals(HttpStatus.SC_NOT_IMPLEMENTED, headers.get(Exchange.HTTP_RESPONSE_CODE));
-        assertEquals("Not Implemented", headers.get(Exchange.HTTP_RESPONSE_TEXT));
-        assertEquals("26", headers.get("Content-Length"));
+        assertEquals(HttpStatus.SC_OK, headers.get(Exchange.HTTP_RESPONSE_CODE));
+        assertEquals("OK", headers.get(Exchange.HTTP_RESPONSE_TEXT));
+        assertEquals("12", headers.get("Content-Length"));
         assertNotNull("Should have Content-Type header", headers.get("Content-Type"));
-        assertEquals("PATCH method not supported", out.getBody(String.class));
+        assertEquals("camel rocks!", out.getBody(String.class));
     }
 
     @Test

http://git-wip-us.apache.org/repos/asf/camel/blob/e1631582/components/camel-http4/src/test/java/org/apache/camel/component/http4/HttpProducerContentTypeTest.java
----------------------------------------------------------------------
diff --git a/components/camel-http4/src/test/java/org/apache/camel/component/http4/HttpProducerContentTypeTest.java b/components/camel-http4/src/test/java/org/apache/camel/component/http4/HttpProducerContentTypeTest.java
index e252595..f1575da 100644
--- a/components/camel-http4/src/test/java/org/apache/camel/component/http4/HttpProducerContentTypeTest.java
+++ b/components/camel-http4/src/test/java/org/apache/camel/component/http4/HttpProducerContentTypeTest.java
@@ -36,7 +36,7 @@ import org.junit.Test;
 
 public class HttpProducerContentTypeTest extends BaseHttpTest {
 
-    private static final String CONTENT_TYPE = "multipart/form-data;boundary=---------------------------j2radvtrk";
+    private static final String CONTENT_TYPE = "multipart/form-data boundary=---------------------------j2radvtrk";
     
     private HttpServer localServer;