You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2013/10/30 09:23:09 UTC
[2/2] git commit: CAMEL-6786 polish the test code
CAMEL-6786 polish the test code
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/ff3221da
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/ff3221da
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/ff3221da
Branch: refs/heads/camel-2.11.x
Commit: ff3221da230b5834d558315d05f44ae426c66916
Parents: fa4b5a8
Author: Willem Jiang <ni...@apache.org>
Authored: Wed Oct 30 16:18:55 2013 +0800
Committer: Willem Jiang <wi...@gmail.com>
Committed: Wed Oct 30 16:22:58 2013 +0800
----------------------------------------------------------------------
.../camel/component/http4/HttpAuthenticationTest.java | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/ff3221da/components/camel-http4/src/test/java/org/apache/camel/component/http4/HttpAuthenticationTest.java
----------------------------------------------------------------------
diff --git a/components/camel-http4/src/test/java/org/apache/camel/component/http4/HttpAuthenticationTest.java b/components/camel-http4/src/test/java/org/apache/camel/component/http4/HttpAuthenticationTest.java
index 2d4c3de..f9576a8 100644
--- a/components/camel-http4/src/test/java/org/apache/camel/component/http4/HttpAuthenticationTest.java
+++ b/components/camel-http4/src/test/java/org/apache/camel/component/http4/HttpAuthenticationTest.java
@@ -51,11 +51,12 @@ public class HttpAuthenticationTest extends BaseHttpTest {
@Test
- public void basicAuthenticationPreemptive() throws Exception {
- Exchange exchange = template.request("http4://" + getHostName() + ":" + getPort() + "/search?authUsername=" + user + "&authPassword=" + password + "&preemptiveAuth=true", new Processor() {
- public void process(Exchange exchange) throws Exception {
- }
- });
+ public void basicAuthenticationPreemptiveShouldSuccess() throws Exception {
+ Exchange exchange = template.request("http4://" + getHostName() + ":" + getPort() + "/search?authUsername=" + user + "&authPassword="
+ + password + "&authenticationPreemptive=true", new Processor() {
+ public void process(Exchange exchange) throws Exception {
+ }
+ });
assertExchange(exchange);
}