@ -140,6 +140,11 @@ public class MouseGame extends JFrame {
return breite;
}
public int getHoehe() {
return hoehe;
private void reset(JPanel panel) {
panel.addMouseListener(new MouseAdapter() {
@ -56,4 +56,12 @@ public class MouseGameTest {
assertTrue(mg.getResetY()==170);
@Test
public void boundsHoehePruefen() throws AWTException {
//Given
MouseGame mg = new MouseGame();
//Then
assertTrue(mg.getHoehe()==650);