Author: clebert.suconic(a)jboss.com
Date: 2010-09-22 15:49:05 -0400 (Wed, 22 Sep 2010)
New Revision: 9717
Modified:
trunk/tests/src/org/hornetq/tests/integration/ssl/CoreClientOverSSLTest.java
Log:
Possibly fixing a test
Modified: trunk/tests/src/org/hornetq/tests/integration/ssl/CoreClientOverSSLTest.java
===================================================================
---
trunk/tests/src/org/hornetq/tests/integration/ssl/CoreClientOverSSLTest.java 2010-09-22
19:41:06 UTC (rev 9716)
+++
trunk/tests/src/org/hornetq/tests/integration/ssl/CoreClientOverSSLTest.java 2010-09-22
19:49:05 UTC (rev 9717)
@@ -30,6 +30,7 @@
import org.hornetq.core.remoting.impl.netty.TransportConstants;
import org.hornetq.core.server.HornetQServer;
import org.hornetq.core.server.HornetQServers;
+import org.hornetq.core.settings.impl.AddressSettings;
import org.hornetq.tests.util.RandomUtil;
import org.hornetq.tests.util.UnitTestCase;
@@ -129,12 +130,25 @@
@Override
protected void setUp() throws Exception
{
+ clearData();
+
ConfigurationImpl config = new ConfigurationImpl();
config.setSecurityEnabled(false);
Map<String, Object> params = new HashMap<String, Object>();
params.put(TransportConstants.SSL_ENABLED_PROP_NAME, true);
config.getAcceptorConfigurations().add(new
TransportConfiguration(NettyAcceptorFactory.class.getName(), params));
+
+ config.setJournalDirectory(getJournalDir());
+ config.setPagingDirectory(getPageDir());
+ config.setBindingsDirectory(getBindingsDir());
+
server = HornetQServers.newHornetQServer(config, false);
+
+ AddressSettings defaultSetting = new AddressSettings();
+ defaultSetting.setMaxSizeBytes(-1);
+
+ server.getAddressSettingsRepository().addMatch("#", defaultSetting);
+
server.start();
}
Show replies by date