Browse Source

create Test for StartBtn

master
Leon Montag 2 years ago
parent
commit
96b5c11fa5
  1. 12
      src/test/java/Gui/guiTest.java

12
src/test/java/Gui/guiTest.java

@ -22,5 +22,17 @@ class guiTest {
assertEquals(FrameWitdh, gui.Frame.getWidth());
assertEquals(FrameHeight, gui.Frame.getHeight());
}
@Test
public void testCreateButtons() {
//arrange
String Start = "Starte Spiel";
//act
String StartTarget = gui.StartBtn.getText();
//assert
assertEquals(Start,StartTarget);
}
}
Loading…
Cancel
Save