diff --git a/test/GamefieldTest.java b/test/GamefieldTest.java index ea1858d..0478d2c 100644 --- a/test/GamefieldTest.java +++ b/test/GamefieldTest.java @@ -22,7 +22,7 @@ class GamefieldTest { assertEquals(0, gamefield.getField(9)); assertEquals(2, gamefield.countSetFields()); - gamefield.outputField(); + } @Test diff --git a/test/LanguageTest.java b/test/LanguageTest.java index b394b74..ca54cec 100644 --- a/test/LanguageTest.java +++ b/test/LanguageTest.java @@ -1,5 +1,6 @@ import org.junit.jupiter.api.Test; + class LanguageTest { private Language deutsch = new Language("de"); @@ -9,7 +10,9 @@ class LanguageTest { @Test void setOutputLanguage() { + english.setOutputLanguage("de"); deutsch.setOutputLanguage("en"); + english.setOutputLanguage("vn"); } @Test @@ -46,4 +49,18 @@ class LanguageTest { english.outputWrongFieldSelected(); viet.outputWrongFieldSelected(); } + + @Test + void outputGameStartedText() { + deutsch.outputGameStartedText(); + english.outputGameStartedText(); + viet.outputGameStartedText(); + } + + @Test + void outputMoveText() { + deutsch.outputMoveText(1,1); + english.outputMoveText(3,1); + viet.outputMoveText(2,2); + } } \ No newline at end of file