Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Mahmoud Ben Hassine <[email protected]>
  • Loading branch information
fmbenhassine committed Jan 7, 2025
1 parent 90e7e9f commit e706957
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ DROP TABLE PLAYERS IF EXISTS;
DROP TABLE GAMES IF EXISTS;
DROP TABLE PLAYER_SUMMARY IF EXISTS;
DROP TABLE ERROR_LOG IF EXISTS;
DROP TABLE OWNERS IF EXISTS;

-- Autogenerated: do not edit this file

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import java.nio.file.Files;
import java.nio.file.Paths;

import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;

Expand All @@ -43,7 +44,8 @@ class PetClinicJobFunctionalTests {
private JobLauncherTestUtils jobLauncherTestUtils;

@BeforeEach
public void setup() throws IOException {
@AfterEach
public void deleteOwnersFile() throws IOException {
Files.deleteIfExists(Paths.get("owners.csv"));
}

Expand Down

0 comments on commit e706957

Please sign in to comment.