Browse files

Fix password: tests use their cluster password

  • Loading branch information...
1 parent 45590b7 commit 9b97f48b0e7aef35cd5583fe6bbea515b54867d4 Francisco Borges committed Nov 16, 2012
View
10 ...tests/src/test/java/org/hornetq/tests/integration/cluster/bridge/BridgeReconnectTest.java
@@ -133,7 +133,7 @@ public void testFailoverAndReconnectImmediately() throws Exception
staticConnectors,
false,
HornetQDefaultConfiguration.DEFAULT_CLUSTER_USER,
- HornetQDefaultConfiguration.DEFAULT_CLUSTER_PASSWORD);
+ CLUSTER_PASSWORD);
List<BridgeConfiguration> bridgeConfigs = new ArrayList<BridgeConfiguration>();
bridgeConfigs.add(bridgeConfiguration);
@@ -276,7 +276,7 @@ public void testFailoverAndReconnectAfterAFewTries() throws Exception
staticConnectors,
false,
HornetQDefaultConfiguration.DEFAULT_CLUSTER_USER,
- HornetQDefaultConfiguration.DEFAULT_CLUSTER_PASSWORD);
+ CLUSTER_PASSWORD);
List<BridgeConfiguration> bridgeConfigs = new ArrayList<BridgeConfiguration>();
bridgeConfigs.add(bridgeConfiguration);
@@ -405,7 +405,7 @@ public void testReconnectSameNode() throws Exception
staticConnectors,
false,
HornetQDefaultConfiguration.DEFAULT_CLUSTER_USER,
- HornetQDefaultConfiguration.DEFAULT_CLUSTER_PASSWORD);
+ CLUSTER_PASSWORD);
List<BridgeConfiguration> bridgeConfigs = new ArrayList<BridgeConfiguration>();
bridgeConfigs.add(bridgeConfiguration);
@@ -550,7 +550,7 @@ private void testShutdownServerCleanlyAndReconnectSameNode(final boolean sleep)
staticConnectors,
false,
HornetQDefaultConfiguration.DEFAULT_CLUSTER_USER,
- HornetQDefaultConfiguration.DEFAULT_CLUSTER_PASSWORD);
+ CLUSTER_PASSWORD);
List<BridgeConfiguration> bridgeConfigs = new ArrayList<BridgeConfiguration>();
bridgeConfigs.add(bridgeConfiguration);
@@ -690,7 +690,7 @@ public void testFailoverThenFailAgainAndReconnect() throws Exception
staticConnectors,
false,
HornetQDefaultConfiguration.DEFAULT_CLUSTER_USER,
- HornetQDefaultConfiguration.DEFAULT_CLUSTER_PASSWORD);
+ CLUSTER_PASSWORD);
List<BridgeConfiguration> bridgeConfigs = new ArrayList<BridgeConfiguration>();
bridgeConfigs.add(bridgeConfiguration);
View
11 ...ation-tests/src/test/java/org/hornetq/tests/integration/management/BridgeControlTest.java
@@ -44,21 +44,15 @@
/**
* A BridgeControlTest
- *
* @author <a href="jmesnil@redhat.com">Jeff Mesnil</a>
- *
- * Created 11 dec. 2008 17:38:58
- *
*/
public class BridgeControlTest extends ManagementTestBase
{
-
private HornetQServer server_0;
+ private HornetQServer server_1;
private BridgeConfiguration bridgeConfig;
- private HornetQServer server_1;
-
public void testAttributes() throws Exception
{
checkResource(ObjectNameBuilder.DEFAULT.getBridgeObjectName(bridgeConfig.getName()));
@@ -164,8 +158,7 @@ protected void setUp() throws Exception
RandomUtil.randomPositiveInt(),
connectors,
false,
- HornetQDefaultConfiguration.DEFAULT_CLUSTER_USER,
- HornetQDefaultConfiguration.DEFAULT_CLUSTER_PASSWORD);
+ HornetQDefaultConfiguration.DEFAULT_CLUSTER_USER, CLUSTER_PASSWORD);
Configuration conf_1 = createBasicConfig();
conf_1.setSecurityEnabled(false);

0 comments on commit 9b97f48

Please sign in to comment.