@Test public void resetBonusSpeed() { ball.increaseBonusSpeed(); ball.increaseBonusSpeed(); ball.resetBonusSpeed(); Assert.assertEquals(0, ball.getBonusSpeed(), 0); }
@Test public void increasesBonusSpeed() { double def = ball.getBonusSpeed(); ball.increaseBonusSpeed(); Assert.assertEquals(1 + def, ball.getBonusSpeed(), 0); }