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 2019/10/23 07:43:43 UTC
[camel] 01/02: Camel-Servlet: Fixed tests
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 8279a11bc11190c8cbe111971caceb95549171da
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Oct 23 09:39:01 2019 +0200
Camel-Servlet: Fixed tests
---
.../camel/component/servlet/ServletSetExchangePropertyBeanTest.java | 2 +-
.../org/apache/camel/component/servlet/rest/RestServletVerbTest.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/components/camel-servlet/src/test/java/org/apache/camel/component/servlet/ServletSetExchangePropertyBeanTest.java b/components/camel-servlet/src/test/java/org/apache/camel/component/servlet/ServletSetExchangePropertyBeanTest.java
index 926c0e6..61d972b 100644
--- a/components/camel-servlet/src/test/java/org/apache/camel/component/servlet/ServletSetExchangePropertyBeanTest.java
+++ b/components/camel-servlet/src/test/java/org/apache/camel/component/servlet/ServletSetExchangePropertyBeanTest.java
@@ -32,7 +32,7 @@ public class ServletSetExchangePropertyBeanTest extends ServletCamelRouterTestSu
ServletUnitClient client = newClient();
WebResponse response = client.getResponse(req);
- assertEquals(200, response.getResponseCode());
+ assertEquals(204, response.getResponseCode());
assertEquals("The response message is wrong ", "", response.getText());
}
diff --git a/components/camel-servlet/src/test/java/org/apache/camel/component/servlet/rest/RestServletVerbTest.java b/components/camel-servlet/src/test/java/org/apache/camel/component/servlet/rest/RestServletVerbTest.java
index d2a6756..36b188d 100644
--- a/components/camel-servlet/src/test/java/org/apache/camel/component/servlet/rest/RestServletVerbTest.java
+++ b/components/camel-servlet/src/test/java/org/apache/camel/component/servlet/rest/RestServletVerbTest.java
@@ -108,7 +108,7 @@ public class RestServletVerbTest extends ServletCamelRouterTestSupport {
client.setExceptionsThrownOnErrorStatus(false);
WebResponse response = client.getResponse(req);
- assertEquals(200, response.getResponseCode());
+ assertEquals(204, response.getResponseCode());
assertMockEndpointsSatisfied();
}