activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r902907 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/store/kahadb/KahaDBStoreBrokerTest.java
Date Mon, 25 Jan 2010 18:17:17 GMT
Author: rajdavies
Date: Mon Jan 25 18:17:17 2010
New Revision: 902907

URL: http://svn.apache.org/viewvc?rev=902907&view=rev
Log:
speed up tests - by deleting database directly

Modified:
    activemq/trunk/activemq-core/src/test/java/org/apache/activemq/store/kahadb/KahaDBStoreBrokerTest.java

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/store/kahadb/KahaDBStoreBrokerTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/store/kahadb/KahaDBStoreBrokerTest.java?rev=902907&r1=902906&r2=902907&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/store/kahadb/KahaDBStoreBrokerTest.java
(original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/store/kahadb/KahaDBStoreBrokerTest.java
Mon Jan 25 18:17:17 2010
@@ -22,6 +22,7 @@
 
 import org.apache.activemq.broker.BrokerService;
 import org.apache.activemq.broker.BrokerTest;
+import org.apache.activemq.util.IOHelper;
 
 /**
  * Once the wire format is completed we can test against real persistence storage.
@@ -33,7 +34,9 @@
     protected BrokerService createBroker() throws Exception {
         BrokerService broker = new BrokerService();
         KahaDBStore kaha = new KahaDBStore();
-        kaha.setDirectory(new File("target/activemq-data/kahadb"));
+        File directory = new File("target/activemq-data/kahadb");
+        IOHelper.deleteChildren(directory);
+        kaha.setDirectory(directory);
         kaha.deleteAllMessages();
         broker.setPersistenceAdapter(kaha);
         return broker;



Mime
View raw message