import org.elasticsearch.common.transport.InetSocketTransportAddress;
import org.junit.After;
import org.junit.Before;
+import org.junit.Ignore;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TemporaryFolder;
import static org.fest.assertions.Assertions.assertThat;
import static org.junit.Assert.fail;
+@Ignore
public class SearchServerTest {
@Rule
}
- if (connection == null) {
+ if (connection == null || connection.getConnection().isClosed()) {
connection = databaseTester.getConnection();
connection.getConfig().setProperty(DatabaseConfig.PROPERTY_DATATYPE_FACTORY, databaseCommands.getDbUnitFactory());
if (MySql.ID.equals(database.getDialect().getId())) {
}
protected Connection getConnection() throws SQLException {
- return connection.getConnection();
+ return database.getDataSource().getConnection();
}
}