You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by bv...@apache.org on 2016/05/08 09:33:11 UTC
camel git commit: Polish test
Repository: camel
Updated Branches:
refs/heads/master f18fe8ade -> 422a72c31
Polish test
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/422a72c3
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/422a72c3
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/422a72c3
Branch: refs/heads/master
Commit: 422a72c3194a68bc08c9a711767408490037e9b8
Parents: f18fe8a
Author: Babak Vahdat <bv...@apache.org>
Authored: Sun May 8 11:32:58 2016 +0200
Committer: Babak Vahdat <bv...@apache.org>
Committed: Sun May 8 11:32:58 2016 +0200
----------------------------------------------------------------------
.../component/http4/HttpProducerWithSystemPropertiesTest.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/422a72c3/components/camel-http4/src/test/java/org/apache/camel/component/http4/HttpProducerWithSystemPropertiesTest.java
----------------------------------------------------------------------
diff --git a/components/camel-http4/src/test/java/org/apache/camel/component/http4/HttpProducerWithSystemPropertiesTest.java b/components/camel-http4/src/test/java/org/apache/camel/component/http4/HttpProducerWithSystemPropertiesTest.java
index 0ff680c..fcd3d20 100644
--- a/components/camel-http4/src/test/java/org/apache/camel/component/http4/HttpProducerWithSystemPropertiesTest.java
+++ b/components/camel-http4/src/test/java/org/apache/camel/component/http4/HttpProducerWithSystemPropertiesTest.java
@@ -66,7 +66,11 @@ public class HttpProducerWithSystemPropertiesTest extends BaseHttpTest {
@AfterClass
public static void resetSystemProperties() throws Exception {
- System.getProperties().setProperty("http.agent", String.valueOf(defaultSystemHttpAgent));
+ if (defaultSystemHttpAgent != null) {
+ System.getProperties().setProperty("http.agent", String.valueOf(defaultSystemHttpAgent));
+ } else {
+ System.getProperties().remove("http.agent");
+ }
}
@Before