Skip to content

Commit 401feb2

Browse files
cppwfsfmbenhassine
authored andcommitted
Remove database tables before starting tests
1 parent 75b1492 commit 401feb2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spring-batch-core/src/test/java/org/springframework/batch/core/test/repository/SQLiteJobRepositoryIntegrationTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ public DataSource dataSource() {
7474
SQLiteDataSource dataSource = new SQLiteDataSource();
7575
dataSource.setUrl("jdbc:sqlite:target/spring-batch.sqlite");
7676
ResourceDatabasePopulator databasePopulator = new ResourceDatabasePopulator();
77+
databasePopulator.addScript(new ClassPathResource("/org/springframework/batch/core/schema-drop-sqlite.sql"));
7778
databasePopulator.addScript(new ClassPathResource("/org/springframework/batch/core/schema-sqlite.sql"));
7879
databasePopulator.execute(dataSource);
7980
return dataSource;

0 commit comments

Comments
 (0)