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