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:08 UTC
[1/2] git commit: CAMEL-6786 polish the test code
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 <ni...@apache.org>
Authored: Wed Oct 30 16:18:55 2013 +0800
Committer: Willem Jiang <wi...@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);
}
[2/2] git commit: CAMEL-6786 polish the test code
Posted by ni...@apache.org.
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);
}