LanguageTest.java added new Methods
This commit is contained in:
parent
4fd4727068
commit
105471350d
|
@ -22,7 +22,7 @@ class GamefieldTest {
|
||||||
assertEquals(0, gamefield.getField(9));
|
assertEquals(0, gamefield.getField(9));
|
||||||
|
|
||||||
assertEquals(2, gamefield.countSetFields());
|
assertEquals(2, gamefield.countSetFields());
|
||||||
gamefield.outputField();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
|
|
||||||
class LanguageTest {
|
class LanguageTest {
|
||||||
|
|
||||||
private Language deutsch = new Language("de");
|
private Language deutsch = new Language("de");
|
||||||
|
@ -9,7 +10,9 @@ class LanguageTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void setOutputLanguage() {
|
void setOutputLanguage() {
|
||||||
|
english.setOutputLanguage("de");
|
||||||
deutsch.setOutputLanguage("en");
|
deutsch.setOutputLanguage("en");
|
||||||
|
english.setOutputLanguage("vn");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -46,4 +49,18 @@ class LanguageTest {
|
||||||
english.outputWrongFieldSelected();
|
english.outputWrongFieldSelected();
|
||||||
viet.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);
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue