mirror of https://github.com/apache/activemq.git
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:
parent
ba1bd264d9
commit
39a1e04554
|
@ -61,14 +61,14 @@ public class SchedulerDBVersionTest {
|
||||||
final static File VERSION_LEGACY_JMS =
|
final static File VERSION_LEGACY_JMS =
|
||||||
new File(basedir + "/src/test/resources/org/apache/activemq/store/schedulerDB/legacy");
|
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 {
|
protected BrokerService createBroker(JobSchedulerStoreImpl scheduler) throws Exception {
|
||||||
BrokerService answer = new BrokerService();
|
BrokerService answer = new BrokerService();
|
||||||
answer.setStoreOpenWireVersion(OpenWireFormat.DEFAULT_LEGACY_VERSION);
|
answer.setStoreOpenWireVersion(OpenWireFormat.DEFAULT_LEGACY_VERSION);
|
||||||
answer.setJobSchedulerStore(scheduler);
|
answer.setJobSchedulerStore(scheduler);
|
||||||
answer.setPersistent(true);
|
answer.setPersistent(true);
|
||||||
answer.setDataDirectory("target");
|
answer.setDataDirectory("target/SchedulerDBVersionTest/");
|
||||||
answer.setSchedulerSupport(true);
|
answer.setSchedulerSupport(true);
|
||||||
answer.setUseJmx(false);
|
answer.setUseJmx(false);
|
||||||
return answer;
|
return answer;
|
||||||
|
@ -119,7 +119,7 @@ public class SchedulerDBVersionTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void doTestScheduleRepeated(File existingStore) throws Exception {
|
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.deleteFile(testDir);
|
||||||
IOHelper.copyFile(existingStore, testDir);
|
IOHelper.copyFile(existingStore, testDir);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue