diff --git a/activemq-core/src/test/java/org/apache/activemq/usecases/KahaDBDurableSubscriptionSelectorTest.java b/activemq-core/src/test/java/org/apache/activemq/usecases/KahaDBDurableSubscriptionSelectorTest.java index 940ef8c173..ce24f80e39 100644 --- a/activemq-core/src/test/java/org/apache/activemq/usecases/KahaDBDurableSubscriptionSelectorTest.java +++ b/activemq-core/src/test/java/org/apache/activemq/usecases/KahaDBDurableSubscriptionSelectorTest.java @@ -17,6 +17,8 @@ package org.apache.activemq.usecases; +import java.io.File; + import org.apache.activemq.store.PersistenceAdapter; import org.apache.activemq.store.kahadb.KahaDBPersistenceAdapter; @@ -24,7 +26,10 @@ public class KahaDBDurableSubscriptionSelectorTest extends DurableSubscriptionSe @Override public PersistenceAdapter createPersistenceAdapter() throws Exception { - return new KahaDBPersistenceAdapter(); + KahaDBPersistenceAdapter adapter = new KahaDBPersistenceAdapter(); + File dir = new File("target/KahaDB"); + adapter.setDirectory(dir); + return adapter; } }