From 672ad409ce754004fc31185923aa74d5f136750e Mon Sep 17 00:00:00 2001 From: schrom01 Date: Sun, 1 May 2022 10:54:21 +0200 Subject: [PATCH] refactoring in FileIOTest.java --- .../java/ch/zhaw/projekt2/turnierverwaltung/FileIOTest.java | 3 --- 1 file changed, 3 deletions(-) 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)); } }