Tournament list #11

Merged
schrom01 merged 13 commits from TournamentList into main 2022-05-01 18:45:02 +02:00
1 changed files with 0 additions and 3 deletions
Showing only changes of commit 672ad409ce - Show all commits

View File

@ -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));
}
}