|
@ -26,12 +26,15 @@ class guiTest { |
|
|
public void testCreateButtons() { |
|
|
public void testCreateButtons() { |
|
|
//arrange |
|
|
//arrange |
|
|
String Start = "Starte Spiel"; |
|
|
String Start = "Starte Spiel"; |
|
|
|
|
|
String Close = "Schließen"; |
|
|
|
|
|
|
|
|
//act |
|
|
//act |
|
|
String StartTarget = gui.StartBtn.getText(); |
|
|
String StartTarget = gui.StartBtn.getText(); |
|
|
|
|
|
String CloseTarget = gui.CloseBtn.getText(); |
|
|
|
|
|
|
|
|
//assert |
|
|
//assert |
|
|
assertEquals(Start,StartTarget); |
|
|
assertEquals(Start,StartTarget); |
|
|
|
|
|
assertEquals(Close,CloseTarget); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|