mirror of https://github.com/apache/activemq.git
remove some dead code in tests
This commit is contained in:
parent
ed1622dd34
commit
4c8a4722a1
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue