diff --git a/app/src/test/java/ch/zhaw/projekt2/turnierverwaltung/FileIOTest.java b/app/src/test/java/ch/zhaw/projekt2/turnierverwaltung/FileIOTest.java index aeeddf4..8abeecd 100644 --- a/app/src/test/java/ch/zhaw/projekt2/turnierverwaltung/FileIOTest.java +++ b/app/src/test/java/ch/zhaw/projekt2/turnierverwaltung/FileIOTest.java @@ -82,7 +82,6 @@ class FileIOTest { @Test void loadTournamentNotExisting(){ - io = new FileIO(mainDir); File file = new File("Not-existing-File"); assertFalse(file.exists()); assertThrows(FileNotFoundException.class, () -> io.loadTournament(file)); @@ -91,13 +90,11 @@ class FileIOTest { @Test void loadTournamentEmpty(){ - io = new FileIO(mainDir); assertThrows(IOException.class, () -> io.loadTournament(new File(mainDir + "/saves/empty.txt"))); } @Test void loadTournamentFileNull(){ - io = new FileIO(mainDir); assertThrows(IllegalArgumentException.class, () -> io.loadTournament(null)); } }