From 4c8a4722a16af6285ea21891851009b33219fb45 Mon Sep 17 00:00:00 2001 From: gtully Date: Fri, 15 May 2015 12:21:17 +0100 Subject: [PATCH] remove some dead code in tests --- .../org/apache/activemq/broker/BrokerTestSupport.java | 10 ---------- .../store/jdbc/JDBCNetworkBrokerDetachTest.java | 1 - 2 files changed, 11 deletions(-) diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/BrokerTestSupport.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/BrokerTestSupport.java index 5fa0620bad..4d2250f1a4 100755 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/BrokerTestSupport.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/BrokerTestSupport.java @@ -299,16 +299,6 @@ public class BrokerTestSupport extends CombinationTestSupport { return info; } - public static void recursiveDelete(File f) { - if (f.isDirectory()) { - File[] files = f.listFiles(); - for (int i = 0; i < files.length; i++) { - recursiveDelete(files[i]); - } - } - f.delete(); - } - protected StubConnection createConnection() throws Exception { return new StubConnection(broker); } 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 8a011fcb53..514dd4a540 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 @@ -26,7 +26,6 @@ public class JDBCNetworkBrokerDetachTest extends NetworkBrokerDetachTest { JDBCPersistenceAdapter jdbc = new JDBCPersistenceAdapter(); EmbeddedDataSource dataSource = (EmbeddedDataSource) jdbc.getDataSource(); dataSource.setDatabaseName(broker.getBrokerName()); - jdbc.deleteAllMessages(); broker.setPersistenceAdapter(jdbc); broker.setUseVirtualTopics(false); }