activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject [2/4] activemq git commit: ensure data dir is empty for test as derby needs clean dir
Date Fri, 19 Jun 2015 11:47:41 GMT
ensure data dir is empty for test as derby needs clean dir


Project: http://git-wip-us.apache.org/repos/asf/activemq/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq/commit/da3174cf
Tree: http://git-wip-us.apache.org/repos/asf/activemq/tree/da3174cf
Diff: http://git-wip-us.apache.org/repos/asf/activemq/diff/da3174cf

Branch: refs/heads/master
Commit: da3174cf98c97eb5736b1c1d414e42590a819f15
Parents: e3a72cf
Author: gtully <gary.tully@gmail.com>
Authored: Thu Jun 18 16:12:57 2015 +0100
Committer: gtully <gary.tully@gmail.com>
Committed: Fri Jun 19 12:36:32 2015 +0100

----------------------------------------------------------------------
 .../activemq/store/jdbc/JDBCNetworkBrokerDetachTest.java     | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq/blob/da3174cf/activemq-unit-tests/src/test/java/org/apache/activemq/store/jdbc/JDBCNetworkBrokerDetachTest.java
----------------------------------------------------------------------
diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/store/jdbc/JDBCNetworkBrokerDetachTest.java
b/activemq-unit-tests/src/test/java/org/apache/activemq/store/jdbc/JDBCNetworkBrokerDetachTest.java
index aa56862..8a19397 100644
--- a/activemq-unit-tests/src/test/java/org/apache/activemq/store/jdbc/JDBCNetworkBrokerDetachTest.java
+++ b/activemq-unit-tests/src/test/java/org/apache/activemq/store/jdbc/JDBCNetworkBrokerDetachTest.java
@@ -16,12 +16,15 @@
  */
 package org.apache.activemq.store.jdbc;
 
+import java.io.File;
 import java.sql.SQLException;
 import java.util.LinkedList;
 import org.apache.activemq.broker.BrokerService;
 import org.apache.activemq.network.NetworkBrokerDetachTest;
+import org.apache.activemq.util.IOHelper;
 import org.apache.derby.jdbc.EmbeddedDataSource;
 import org.junit.After;
+import org.junit.BeforeClass;
 
 public class JDBCNetworkBrokerDetachTest extends NetworkBrokerDetachTest {
 
@@ -55,4 +58,9 @@ public class JDBCNetworkBrokerDetachTest extends NetworkBrokerDetachTest
{
         }
         dataSources.clear();
     }
+
+    @BeforeClass
+    public static void ensureDerbyHasCleanDirectory() throws Exception {
+        IOHelper.delete(new File(IOHelper.getDefaultDataDirectory()));
+    }
 }


Mime
View raw message