@Test public void whenSettingPerTimeCosts_itShouldBeSetCorrectly() { VehicleTypeImpl type = VehicleTypeImpl.Builder.newInstance("type").setCostPerTime(10).build(); assertEquals(10.0, type.getVehicleCostParams().perTimeUnit, 0.0); }
public void whenSettingFixedCosts_itShouldBeSetCorrectly() { VehicleTypeImpl type = VehicleTypeImpl.Builder.newInstance("type").setFixedCost(10).build(); assertEquals(10.0, type.getVehicleCostParams().fix, 0.0); }