Remove database tables before starting tests
This commit is contained in:
committed by
Mahmoud Ben Hassine
parent
75b1492039
commit
401feb29f7
@@ -74,6 +74,7 @@ public class SQLiteJobRepositoryIntegrationTests {
|
||||
SQLiteDataSource dataSource = new SQLiteDataSource();
|
||||
dataSource.setUrl("jdbc:sqlite:target/spring-batch.sqlite");
|
||||
ResourceDatabasePopulator databasePopulator = new ResourceDatabasePopulator();
|
||||
databasePopulator.addScript(new ClassPathResource("/org/springframework/batch/core/schema-drop-sqlite.sql"));
|
||||
databasePopulator.addScript(new ClassPathResource("/org/springframework/batch/core/schema-sqlite.sql"));
|
||||
databasePopulator.execute(dataSource);
|
||||
return dataSource;
|
||||
|
||||
Reference in New Issue
Block a user