Author: clebert.suconic(a)jboss.com
Date: 2010-11-29 22:08:02 -0500 (Mon, 29 Nov 2010)
New Revision: 9946
Modified:
branches/2_2_0_HA_Improvements_preMerge/tests/jms-tests/src/org/hornetq/jms/tests/CTSMiscellaneousTest.java
branches/2_2_0_HA_Improvements_preMerge/tests/jms-tests/src/org/hornetq/jms/tests/tools/container/LocalTestServer.java
Log:
fixing tests
Modified:
branches/2_2_0_HA_Improvements_preMerge/tests/jms-tests/src/org/hornetq/jms/tests/CTSMiscellaneousTest.java
===================================================================
---
branches/2_2_0_HA_Improvements_preMerge/tests/jms-tests/src/org/hornetq/jms/tests/CTSMiscellaneousTest.java 2010-11-30
03:03:12 UTC (rev 9945)
+++
branches/2_2_0_HA_Improvements_preMerge/tests/jms-tests/src/org/hornetq/jms/tests/CTSMiscellaneousTest.java 2010-11-30
03:08:02 UTC (rev 9946)
@@ -26,7 +26,6 @@
import org.hornetq.core.remoting.impl.netty.NettyConnectorFactory;
import org.hornetq.jms.client.HornetQConnectionFactory;
import org.hornetq.jms.server.impl.JMSFactoryType;
-import org.hornetq.tests.util.RandomUtil;
/**
* Safeguards for previously detected TCK failures.
Modified:
branches/2_2_0_HA_Improvements_preMerge/tests/jms-tests/src/org/hornetq/jms/tests/tools/container/LocalTestServer.java
===================================================================
---
branches/2_2_0_HA_Improvements_preMerge/tests/jms-tests/src/org/hornetq/jms/tests/tools/container/LocalTestServer.java 2010-11-30
03:03:12 UTC (rev 9945)
+++
branches/2_2_0_HA_Improvements_preMerge/tests/jms-tests/src/org/hornetq/jms/tests/tools/container/LocalTestServer.java 2010-11-30
03:08:02 UTC (rev 9946)
@@ -21,6 +21,7 @@
import java.util.List;
import java.util.Properties;
import java.util.Set;
+import java.util.UUID;
import javax.management.MBeanServerInvocationHandler;
import javax.management.ObjectName;
@@ -39,7 +40,6 @@
import org.hornetq.integration.bootstrap.HornetQBootstrapServer;
import org.hornetq.jms.server.JMSServerManager;
import org.hornetq.jms.server.impl.JMSFactoryType;
-import org.hornetq.tests.util.RandomUtil;
import org.jboss.kernel.plugins.config.property.PropertyKernelConfig;
/**
@@ -338,7 +338,7 @@
ArrayList<String> connectors = new ArrayList<String>();
for (TransportConfiguration tnsp : connectorConfigs)
{
- String name = RandomUtil.randomString();
+ String name = UUID.randomUUID().toString();
getHornetQServer().getConfiguration().getConnectorConfigurations().put(name,
tnsp);