DBZ-1401 Database blocked after test

This commit is contained in:
Jiri Pechanec 2019-10-02 17:30:59 +02:00 committed by Gunnar Morling
parent 7c4203cf60
commit 06509d26ce

View File

@ -9,6 +9,7 @@
import java.sql.SQLException;
import org.fest.assertions.Assertions;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
@ -45,6 +46,13 @@ public void before() throws SQLException {
Testing.Files.delete(TestHelper.DB_HISTORY_PATH);
}
@After
public void after() throws SQLException {
if (connection != null) {
connection.close();
}
}
@Test
public void shouldProcessFromSnapshot() throws Exception {
connection = TestHelper.testConnection();