implemented functionality to add new Tournament
This commit is contained in:
@@ -109,7 +109,12 @@ class FileIOTest {
|
||||
|
||||
@Test
|
||||
void saveTournament() throws IOException {
|
||||
Tournament tournament = new Tournament("test1");
|
||||
Tournament tournament = null;
|
||||
try {
|
||||
tournament = new Tournament("test1", Tournament.Type.KO);
|
||||
} catch (Tournament.InvalidNameException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
io.saveTournament(tournament);
|
||||
File file = new File(mainDir + "/saves/test1.txt");
|
||||
if(file.exists()){
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user