Skip to content

Commit 396eac3

Browse files
fmbenhassineFBibonne
authored andcommitted
Fix tests
Signed-off-by: Mahmoud Ben Hassine <[email protected]> Signed-off-by: Fabrice Bibonne <[email protected]>
1 parent 89c7100 commit 396eac3

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

spring-batch-samples/src/main/resources/org/springframework/batch/samples/common/business-schema-hsqldb.sql

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ DROP TABLE PLAYERS IF EXISTS;
99
DROP TABLE GAMES IF EXISTS;
1010
DROP TABLE PLAYER_SUMMARY IF EXISTS;
1111
DROP TABLE ERROR_LOG IF EXISTS;
12+
DROP TABLE OWNERS IF EXISTS;
1213

1314
-- Autogenerated: do not edit this file
1415

spring-batch-samples/src/test/java/org/springframework/batch/samples/petclinic/PetClinicJobFunctionalTests.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import java.nio.file.Files;
2020
import java.nio.file.Paths;
2121

22+
import org.junit.jupiter.api.AfterEach;
2223
import org.junit.jupiter.api.BeforeEach;
2324
import org.junit.jupiter.api.Test;
2425

@@ -43,7 +44,8 @@ class PetClinicJobFunctionalTests {
4344
private JobLauncherTestUtils jobLauncherTestUtils;
4445

4546
@BeforeEach
46-
public void setup() throws IOException {
47+
@AfterEach
48+
public void deleteOwnersFile() throws IOException {
4749
Files.deleteIfExists(Paths.get("owners.csv"));
4850
}
4951

0 commit comments

Comments
 (0)