@Test public void testUpdateCurrentRateShouldUpdateRate() { double newRate = new Random().nextDouble(); hourlyRate.updateCurrentRate(newRate); assertEquals(newRate, hourlyRate.currentRate(), DELTA_VALUE); }
@Test public void testCurrentRateShouldReturnDefaultRate() { assertEquals(DEFAULT_RATE, hourlyRate.currentRate(), DELTA_VALUE); }