You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
524 B
33 lines
524 B
import static org.junit.jupiter.api.Assertions.*;
|
|
|
|
import org.junit.jupiter.api.Test;
|
|
|
|
class Quiz_SpielTest extends Quiz_Spiel {
|
|
|
|
@Test
|
|
void main() {
|
|
|
|
try{
|
|
Quiz_Spiel window = new Quiz_Spiel();
|
|
}catch(Exception e){
|
|
System.out.println(e.toString());
|
|
}
|
|
|
|
|
|
}
|
|
|
|
@Test
|
|
void actionPerformed() {
|
|
if(textfield_4.getText().startsWith("C") || textfield_4.getText().startsWith("c") ){
|
|
System.out.println("Richtig");
|
|
}else{
|
|
System.out.println("Falsch gedrückt");
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|