|
@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.*; |
|
|
|
|
|
|
|
|
import org.junit.jupiter.api.Test; |
|
|
import org.junit.jupiter.api.Test; |
|
|
|
|
|
|
|
|
class Quiz_SpielTest { |
|
|
|
|
|
|
|
|
class Quiz_SpielTest extends Quiz_Spiel { |
|
|
|
|
|
|
|
|
@Test |
|
|
@Test |
|
|
void main() { |
|
|
void main() { |
|
@ -14,5 +14,20 @@ class Quiz_SpielTest { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@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"); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |