camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bvah...@apache.org
Subject git commit: CAMEL-6938: Fixed the failing test.
Date Wed, 06 Nov 2013 12:52:41 GMT
Updated Branches:
  refs/heads/master 0e8aa70ab -> 39db818c9


CAMEL-6938: Fixed the failing test.

Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/39db818c
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/39db818c
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/39db818c

Branch: refs/heads/master
Commit: 39db818c9405b3dc9157387a8c8e44e7eeb090c1
Parents: 0e8aa70
Author: Babak Vahdat <bvahdat@apache.org>
Authored: Wed Nov 6 13:52:34 2013 +0100
Committer: Babak Vahdat <bvahdat@apache.org>
Committed: Wed Nov 6 13:52:34 2013 +0100

----------------------------------------------------------------------
 .../camel/management/ManagedNamePatternIncludeHostNameTest.java   | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/39db818c/camel-core/src/test/java/org/apache/camel/management/ManagedNamePatternIncludeHostNameTest.java
----------------------------------------------------------------------
diff --git a/camel-core/src/test/java/org/apache/camel/management/ManagedNamePatternIncludeHostNameTest.java
b/camel-core/src/test/java/org/apache/camel/management/ManagedNamePatternIncludeHostNameTest.java
index 70251b9..65dce05 100644
--- a/camel-core/src/test/java/org/apache/camel/management/ManagedNamePatternIncludeHostNameTest.java
+++ b/camel-core/src/test/java/org/apache/camel/management/ManagedNamePatternIncludeHostNameTest.java
@@ -30,6 +30,9 @@ public class ManagedNamePatternIncludeHostNameTest extends ManagementTestSupport
     @Override
     protected CamelContext createCamelContext() throws Exception {
         CamelContext context = super.createCamelContext();
+        DefaultManagementNamingStrategy naming = (DefaultManagementNamingStrategy)context.getManagementStrategy().getManagementNamingStrategy();
+        naming.setHostName("localhost");
+        naming.setDomainName("org.apache.camel");
         context.getManagementStrategy().getManagementAgent().setIncludeHostName(true);
         context.getManagementNameStrategy().setNamePattern("cool-#name#");
         return context;


Mime
View raw message