camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject [1/2] git commit: CAMEL-6786 polish the test code
Date Wed, 30 Oct 2013 08:23:08 GMT
Updated Branches:
  refs/heads/camel-2.11.x fa4b5a8dd -> ff3221da2
  refs/heads/camel-2.12.x 53d891565 -> 7db4d7e02


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/7db4d7e0
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/7db4d7e0
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/7db4d7e0

Branch: refs/heads/camel-2.12.x
Commit: 7db4d7e028a51ff8b512092f395083ecfd3e1e10
Parents: 53d8915
Author: Willem Jiang <ningjiang@apache.org>
Authored: Wed Oct 30 16:18:55 2013 +0800
Committer: Willem Jiang <willem.jiang@gmail.com>
Committed: Wed Oct 30 16:22:23 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/7db4d7e0/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);
     }


Mime
View raw message