Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix password: tests use their cluster password

  • Loading branch information...
commit 9b97f48b0e7aef35cd5583fe6bbea515b54867d4 1 parent 45590b7
Francisco Borges authored
10 tests/integration-tests/src/test/java/org/hornetq/tests/integration/cluster/bridge/BridgeReconnectTest.java
@@ -133,7 +133,7 @@ public void testFailoverAndReconnectImmediately() throws Exception
133 133 staticConnectors,
134 134 false,
135 135 HornetQDefaultConfiguration.DEFAULT_CLUSTER_USER,
136   - HornetQDefaultConfiguration.DEFAULT_CLUSTER_PASSWORD);
  136 + CLUSTER_PASSWORD);
137 137
138 138 List<BridgeConfiguration> bridgeConfigs = new ArrayList<BridgeConfiguration>();
139 139 bridgeConfigs.add(bridgeConfiguration);
@@ -276,7 +276,7 @@ public void testFailoverAndReconnectAfterAFewTries() throws Exception
276 276 staticConnectors,
277 277 false,
278 278 HornetQDefaultConfiguration.DEFAULT_CLUSTER_USER,
279   - HornetQDefaultConfiguration.DEFAULT_CLUSTER_PASSWORD);
  279 + CLUSTER_PASSWORD);
280 280
281 281 List<BridgeConfiguration> bridgeConfigs = new ArrayList<BridgeConfiguration>();
282 282 bridgeConfigs.add(bridgeConfiguration);
@@ -405,7 +405,7 @@ public void testReconnectSameNode() throws Exception
405 405 staticConnectors,
406 406 false,
407 407 HornetQDefaultConfiguration.DEFAULT_CLUSTER_USER,
408   - HornetQDefaultConfiguration.DEFAULT_CLUSTER_PASSWORD);
  408 + CLUSTER_PASSWORD);
409 409
410 410 List<BridgeConfiguration> bridgeConfigs = new ArrayList<BridgeConfiguration>();
411 411 bridgeConfigs.add(bridgeConfiguration);
@@ -550,7 +550,7 @@ private void testShutdownServerCleanlyAndReconnectSameNode(final boolean sleep)
550 550 staticConnectors,
551 551 false,
552 552 HornetQDefaultConfiguration.DEFAULT_CLUSTER_USER,
553   - HornetQDefaultConfiguration.DEFAULT_CLUSTER_PASSWORD);
  553 + CLUSTER_PASSWORD);
554 554
555 555 List<BridgeConfiguration> bridgeConfigs = new ArrayList<BridgeConfiguration>();
556 556 bridgeConfigs.add(bridgeConfiguration);
@@ -690,7 +690,7 @@ public void testFailoverThenFailAgainAndReconnect() throws Exception
690 690 staticConnectors,
691 691 false,
692 692 HornetQDefaultConfiguration.DEFAULT_CLUSTER_USER,
693   - HornetQDefaultConfiguration.DEFAULT_CLUSTER_PASSWORD);
  693 + CLUSTER_PASSWORD);
694 694
695 695 List<BridgeConfiguration> bridgeConfigs = new ArrayList<BridgeConfiguration>();
696 696 bridgeConfigs.add(bridgeConfiguration);
11 tests/integration-tests/src/test/java/org/hornetq/tests/integration/management/BridgeControlTest.java
@@ -44,21 +44,15 @@
44 44
45 45 /**
46 46 * A BridgeControlTest
47   - *
48 47 * @author <a href="jmesnil@redhat.com">Jeff Mesnil</a>
49   - *
50   - * Created 11 dec. 2008 17:38:58
51   - *
52 48 */
53 49 public class BridgeControlTest extends ManagementTestBase
54 50 {
55   -
56 51 private HornetQServer server_0;
  52 + private HornetQServer server_1;
57 53
58 54 private BridgeConfiguration bridgeConfig;
59 55
60   - private HornetQServer server_1;
61   -
62 56 public void testAttributes() throws Exception
63 57 {
64 58 checkResource(ObjectNameBuilder.DEFAULT.getBridgeObjectName(bridgeConfig.getName()));
@@ -164,8 +158,7 @@ protected void setUp() throws Exception
164 158 RandomUtil.randomPositiveInt(),
165 159 connectors,
166 160 false,
167   - HornetQDefaultConfiguration.DEFAULT_CLUSTER_USER,
168   - HornetQDefaultConfiguration.DEFAULT_CLUSTER_PASSWORD);
  161 + HornetQDefaultConfiguration.DEFAULT_CLUSTER_USER, CLUSTER_PASSWORD);
169 162
170 163 Configuration conf_1 = createBasicConfig();
171 164 conf_1.setSecurityEnabled(false);

0 comments on commit 9b97f48

Please sign in to comment.
Something went wrong with that request. Please try again.