mirror of https://github.com/apache/activemq.git
NO-JIRA ensure each test has a store with its own directory.
This commit is contained in:
parent
9bc28214d5
commit
ef129c21cd
|
@ -39,7 +39,9 @@ import org.apache.activemq.util.IOHelper;
|
||||||
import org.apache.activemq.util.Wait;
|
import org.apache.activemq.util.Wait;
|
||||||
import org.junit.After;
|
import org.junit.After;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
|
import org.junit.Rule;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
import org.junit.rules.TestName;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
|
@ -47,6 +49,9 @@ public class KahaDBSchedulerIndexRebuildTest {
|
||||||
|
|
||||||
static final Logger LOG = LoggerFactory.getLogger(KahaDBSchedulerIndexRebuildTest.class);
|
static final Logger LOG = LoggerFactory.getLogger(KahaDBSchedulerIndexRebuildTest.class);
|
||||||
|
|
||||||
|
@Rule
|
||||||
|
public TestName name = new TestName();
|
||||||
|
|
||||||
private BrokerService broker = null;
|
private BrokerService broker = null;
|
||||||
private final int NUM_JOBS = 50;
|
private final int NUM_JOBS = 50;
|
||||||
|
|
||||||
|
@ -60,11 +65,12 @@ public class KahaDBSchedulerIndexRebuildTest {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private final File schedulerStoreDir = new File(basedir, "activemq-data/store/scheduler");
|
private File schedulerStoreDir;
|
||||||
private final File storeDir = new File(basedir, "activemq-data/store/");
|
private final File storeDir = new File(basedir, "activemq-data/store/");
|
||||||
|
|
||||||
@Before
|
@Before
|
||||||
public void setUp() throws Exception {
|
public void setUp() throws Exception {
|
||||||
|
schedulerStoreDir = new File(basedir, "activemq-data/store/scheduler/" + name.getMethodName());
|
||||||
LOG.info("Test Dir = {}", schedulerStoreDir);
|
LOG.info("Test Dir = {}", schedulerStoreDir);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue