gruppe06-hufflepuff-projekt.../test/LanguageTest.java

66 lines
1.5 KiB
Java
Raw Permalink Normal View History

2021-10-08 10:41:55 +02:00
import org.junit.jupiter.api.Test;
2021-10-09 16:18:22 +02:00
2021-10-08 10:41:55 +02:00
class LanguageTest {
private Language deutsch = new Language("de");
private Language english = new Language("en");
private Language viet = new Language("vn");
private Language def = new Language("dasd");
@Test
void setOutputLanguage() {
2021-10-09 16:18:22 +02:00
english.setOutputLanguage("de");
2021-10-08 10:41:55 +02:00
deutsch.setOutputLanguage("en");
2021-10-09 16:18:22 +02:00
english.setOutputLanguage("vn");
2021-10-08 10:41:55 +02:00
}
@Test
void outputWinnerText() {
deutsch.outputWinnerText(1);
english.outputWinnerText(2);
viet.outputWinnerText(3);
}
@Test
void outputGameOverText(){
deutsch.outputGameOverText();
english.outputGameOverText();
viet.outputGameOverText();
}
@Test
void outputTieText(){
deutsch.outputTieText();
english.outputTieText();
viet.outputTieText();
}
2021-10-08 10:41:55 +02:00
@Test
void outputNextPlayerText() {
deutsch.outputNextPlayerText(1);
english.outputNextPlayerText(2);
viet.outputNextPlayerText(3);
}
@Test
void outputWrongFieldSelected() {
deutsch.outputWrongFieldSelected();
english.outputWrongFieldSelected();
viet.outputWrongFieldSelected();
}
2021-10-09 16:18:22 +02:00
@Test
void outputGameStartedText() {
deutsch.outputGameStartedText();
english.outputGameStartedText();
viet.outputGameStartedText();
}
@Test
void outputMoveText() {
deutsch.outputMoveText(1,1);
english.outputMoveText(3,1);
viet.outputMoveText(2,2);
}
2021-10-08 10:41:55 +02:00
}