Updated Branches: refs/heads/master 26968c874 -> f54b77d6c
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/f54b77d6 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/f54b77d6 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/f54b77d6 Branch: refs/heads/master Commit: f54b77d6cf94cd14684ac4c5f20b6bfe6d0e4850 Parents: 26968c8 Author: Willem Jiang <ningji...@apache.org> Authored: Wed Oct 30 16:18:55 2013 +0800 Committer: Willem Jiang <ningji...@apache.org> Committed: Wed Oct 30 16:18:55 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/f54b77d6/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); }