remove some dead code in tests

This commit is contained in:
gtully 2015-05-15 12:21:17 +01:00
parent ed1622dd34
commit 4c8a4722a1
2 changed files with 0 additions and 11 deletions

View File

@ -299,16 +299,6 @@ public class BrokerTestSupport extends CombinationTestSupport {
return info; 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 { protected StubConnection createConnection() throws Exception {
return new StubConnection(broker); return new StubConnection(broker);
} }

View File

@ -26,7 +26,6 @@ public class JDBCNetworkBrokerDetachTest extends NetworkBrokerDetachTest {
JDBCPersistenceAdapter jdbc = new JDBCPersistenceAdapter(); JDBCPersistenceAdapter jdbc = new JDBCPersistenceAdapter();
EmbeddedDataSource dataSource = (EmbeddedDataSource) jdbc.getDataSource(); EmbeddedDataSource dataSource = (EmbeddedDataSource) jdbc.getDataSource();
dataSource.setDatabaseName(broker.getBrokerName()); dataSource.setDatabaseName(broker.getBrokerName());
jdbc.deleteAllMessages();
broker.setPersistenceAdapter(jdbc); broker.setPersistenceAdapter(jdbc);
broker.setUseVirtualTopics(false); broker.setUseVirtualTopics(false);
} }