@ -141,6 +141,11 @@ public class MouseGame extends JFrame {
}
public int getHoehe() {
return hoehe;
private void reset(JPanel panel) {
panel.addMouseListener(new MouseAdapter() {
@Override
@ -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);