CI 2019 von Daniel, Eugen und Michael
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.

32 lines
524 B

  1. import static org.junit.jupiter.api.Assertions.*;
  2. import org.junit.jupiter.api.Test;
  3. class Quiz_SpielTest extends Quiz_Spiel {
  4. @Test
  5. void main() {
  6. try{
  7. Quiz_Spiel window = new Quiz_Spiel();
  8. }catch(Exception e){
  9. System.out.println(e.toString());
  10. }
  11. }
  12. @Test
  13. void actionPerformed() {
  14. if(textfield_4.getText().startsWith("C") || textfield_4.getText().startsWith("c") ){
  15. System.out.println("Richtig");
  16. }else{
  17. System.out.println("Falsch gedrückt");
  18. }
  19. }
  20. }