Beispiel #1
0
  @Test
  public void testUpdateCurrentRateShouldUpdateRate() {
    double newRate = new Random().nextDouble();

    hourlyRate.updateCurrentRate(newRate);

    assertEquals(newRate, hourlyRate.currentRate(), DELTA_VALUE);
  }
Beispiel #2
0
 @Test
 public void testCurrentRateShouldReturnDefaultRate() {
   assertEquals(DEFAULT_RATE, hourlyRate.currentRate(), DELTA_VALUE);
 }