NO-JIRA ensure each test has a store with its own directory.

This commit is contained in:
Timothy Bish 2015-11-24 11:17:25 -05:00
parent 9bc28214d5
commit ef129c21cd
1 changed files with 7 additions and 1 deletions

View File

@ -39,7 +39,9 @@ import org.apache.activemq.util.IOHelper;
import org.apache.activemq.util.Wait;
import org.junit.After;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TestName;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@ -47,6 +49,9 @@ public class KahaDBSchedulerIndexRebuildTest {
static final Logger LOG = LoggerFactory.getLogger(KahaDBSchedulerIndexRebuildTest.class);
@Rule
public TestName name = new TestName();
private BrokerService broker = null;
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/");
@Before
public void setUp() throws Exception {
schedulerStoreDir = new File(basedir, "activemq-data/store/scheduler/" + name.getMethodName());
LOG.info("Test Dir = {}", schedulerStoreDir);
}