ARTEMIS-2367 fix directories for tests

This commit is contained in:
Justin Bertram 2019-06-03 13:22:06 -05:00
parent d4973ff636
commit bde1b1cc4e
1 changed files with 10 additions and 1 deletions

View File

@ -681,6 +681,11 @@ public class FileConfigurationTest extends ConfigurationImplTest {
@Test
public void testJournalFileOpenTimeoutDefaultValue() throws Exception {
ActiveMQServerImpl server = new ActiveMQServerImpl();
server.getConfiguration()
.setJournalDirectory(getJournalDir())
.setPagingDirectory(getPageDir())
.setLargeMessagesDirectory(getLargeMessagesDir())
.setBindingsDirectory(getBindingsDir());
try {
server.start();
JournalImpl journal = (JournalImpl) server.getStorageManager().getBindingsJournal();
@ -695,7 +700,11 @@ public class FileConfigurationTest extends ConfigurationImplTest {
public void testJournalFileOpenTimeoutValue() throws Exception {
int timeout = RandomUtil.randomPositiveInt();
Configuration configuration = createConfiguration("shared-store-master-hapolicy-config.xml");
configuration.setJournalFileOpenTimeout(timeout);
configuration.setJournalFileOpenTimeout(timeout)
.setJournalDirectory(getJournalDir())
.setPagingDirectory(getPageDir())
.setLargeMessagesDirectory(getLargeMessagesDir())
.setBindingsDirectory(getBindingsDir());
ActiveMQServerImpl server = new ActiveMQServerImpl(configuration);
try {
server.start();