Ensure that the test has it's own data dir so it doesn't stumble into

the KahaDB store from some other test.
This commit is contained in:
Timothy Bish 2015-07-10 09:38:22 -04:00
parent ba1bd264d9
commit 39a1e04554
1 changed files with 3 additions and 3 deletions

View File

@ -61,14 +61,14 @@ public class SchedulerDBVersionTest {
final static File VERSION_LEGACY_JMS =
new File(basedir + "/src/test/resources/org/apache/activemq/store/schedulerDB/legacy");
BrokerService broker = null;
private BrokerService broker = null;
protected BrokerService createBroker(JobSchedulerStoreImpl scheduler) throws Exception {
BrokerService answer = new BrokerService();
answer.setStoreOpenWireVersion(OpenWireFormat.DEFAULT_LEGACY_VERSION);
answer.setJobSchedulerStore(scheduler);
answer.setPersistent(true);
answer.setDataDirectory("target");
answer.setDataDirectory("target/SchedulerDBVersionTest/");
answer.setSchedulerSupport(true);
answer.setUseJmx(false);
return answer;
@ -119,7 +119,7 @@ public class SchedulerDBVersionTest {
}
public void doTestScheduleRepeated(File existingStore) throws Exception {
File testDir = new File("target/activemq-data/store/scheduler/versionDB");
File testDir = new File("target/SchedulerDBVersionTest/store/scheduler/versionDB");
IOHelper.deleteFile(testDir);
IOHelper.copyFile(existingStore, testDir);