implemented functionality to show existing Tournaments.

This commit is contained in:
schrom01
2022-04-30 17:09:01 +02:00
parent cd0c9a4773
commit 6d5dd700a0
11 changed files with 69 additions and 134 deletions
@@ -1,14 +0,0 @@
/*
* This Java source file was generated by the Gradle 'init' task.
*/
package ch.zhaw.projekt2.turnierverwaltung;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class AppTest {
@Test void appHasAGreeting() {
App classUnderTest = new App();
assertNotNull(classUnderTest.getGreeting(), "app should have a greeting");
}
}
@@ -60,7 +60,7 @@ class FileIOTest {
@Test
void getList() {
List<File> tournaments = io.getList();
List<FileIO.TournamentFile> tournaments = io.getList();
assertEquals("empty.txt", tournaments.get(0).getName());
assertEquals("test1.txt", tournaments.get(1).getName());
}