You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ja...@apache.org on 2019/10/24 09:37:30 UTC
[camel] branch master updated: Fix camel-slack consumer test
assertion
This is an automated email from the ASF dual-hosted git repository.
jamesnetherton pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new fd2564e Fix camel-slack consumer test assertion
fd2564e is described below
commit fd2564edf0f5c17e60183e5f6cf2881ec3cb8e08
Author: James Netherton <ja...@gmail.com>
AuthorDate: Thu Oct 24 10:35:00 2019 +0100
Fix camel-slack consumer test assertion
---
.../java/org/apache/camel/component/slack/SlackConsumerTest.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/components/camel-slack/src/test/java/org/apache/camel/component/slack/SlackConsumerTest.java b/components/camel-slack/src/test/java/org/apache/camel/component/slack/SlackConsumerTest.java
index c03b2ec..ad8ec32 100644
--- a/components/camel-slack/src/test/java/org/apache/camel/component/slack/SlackConsumerTest.java
+++ b/components/camel-slack/src/test/java/org/apache/camel/component/slack/SlackConsumerTest.java
@@ -61,8 +61,8 @@ public class SlackConsumerTest extends CamelTestSupport {
}
private void assumeCredentials() {
- Assume.assumeThat("You should specified access token", token, CoreMatchers.notNullValue());
- Assume.assumeThat("You should specified slack application hook", hook, CoreMatchers.notNullValue());
+ Assume.assumeThat("Please specify a Slack access token", token, CoreMatchers.notNullValue());
+ Assume.assumeThat("Please specify a Slack application webhook URL", hook, CoreMatchers.notNullValue());
}
private void sendMessage(String message) throws IOException {
@@ -71,7 +71,7 @@ public class SlackConsumerTest extends CamelTestSupport {
post.setHeader("Content-type", "application/json");
post.setEntity(new StringEntity(String.format("{ 'text': '%s'}", message)));
HttpResponse response = client.execute(post);
- Assert.assertEquals(response.getStatusLine().getStatusCode(), HttpStatus.SC_OK);
+ Assert.assertEquals(HttpStatus.SC_OK, response.getStatusLine().getStatusCode());
}
@Override