refactoring in FileIOTest.java
This commit is contained in:
parent
e8e64d435c
commit
672ad409ce
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue