@Test public void testSetCatchRate() { freshWater.setCatchRate(25.1); assertEquals(25.1, freshWater.getCatchRate(), DELTA); ultraBall.setCatchRate(85.69); assertEquals(85.69, ultraBall.getCatchRate(), DELTA); }
@Test public void testGetCatchRate() { assertEquals(2, ultraBall.getCatchRate(), DELTA); assertEquals(0, freshWater.getCatchRate(), DELTA); assertEquals(0, maxRevive.getCatchRate(), DELTA); }