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