Fix tests

Signed-off-by: Mahmoud Ben Hassine <mbenhassine@vmware.com>
This commit is contained in:
Mahmoud Ben Hassine
2025-01-07 13:20:22 +01:00
parent 90e7e9fefa
commit e706957eb7
2 changed files with 4 additions and 1 deletions

View File

@@ -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

View File

@@ -19,6 +19,7 @@ import java.io.IOException;
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;
@@ -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"));
}