Browse Source

create Test for CloseBtn

master
Leon Montag 2 years ago
parent
commit
80a43a0f0f
  1. 3
      src/test/java/Gui/guiTest.java

3
src/test/java/Gui/guiTest.java

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

Loading…
Cancel
Save