Skip to content

Commit f29ff88

Browse files
committed
Fixed failed test
1 parent e06abb4 commit f29ff88

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

src/test/java/org/javawebstack/jobs/storage/sql/SQLJobStorageTest.java

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,27 @@
22

33
import org.javawebstack.jobs.storage.JobStorage;
44
import org.javawebstack.jobs.storage.JobStorageTest;
5-
import org.javawebstack.jobs.storage.sql.SQLJobStorage;
65
import org.javawebstack.jobs.test.TestProperties;
76
import org.javawebstack.jobs.test.TestUtil;
87
import org.javawebstack.jobs.test.precondition.SQLDatabaseAvailable;
9-
import org.javawebstack.orm.wrapper.SQL;
10-
import org.junit.jupiter.api.AfterAll;
8+
import org.javawebstack.orm.connection.pool.SQLPool;
119
import org.junit.jupiter.api.AfterEach;
1210
import org.junit.jupiter.api.extension.ExtendWith;
1311

1412
@ExtendWith(SQLDatabaseAvailable.class)
1513
public class SQLJobStorageTest extends JobStorageTest {
1614

17-
private SQL sql;
15+
private SQLPool pool;
1816

1917
protected JobStorage initStorage() {
20-
sql = TestProperties.createSQLDatabaseConnection();
21-
TestUtil.purgeStorageDatabase(sql);
22-
return new SQLJobStorage(sql, null);
18+
pool = TestProperties.createSQLDatabaseConnection();
19+
TestUtil.purgeStorageDatabase(pool);
20+
return new SQLJobStorage(pool, null);
2321
}
2422

2523
@AfterEach
2624
public void cleanup() {
27-
TestUtil.purgeStorageDatabase(sql);
25+
TestUtil.purgeStorageDatabase(pool);
2826
}
2927

3028
}

0 commit comments

Comments
 (0)