Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
paulheinr committed Jul 4, 2024
1 parent 506ed28 commit d2d25f3
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import static org.junit.jupiter.api.Assertions.assertNull;

import java.util.List;
import java.util.Map;

import jakarta.inject.Provider;
import org.junit.jupiter.api.Test;
Expand Down Expand Up @@ -126,11 +127,11 @@ void testDisutilityResults() {
void testDistanceTollRouter() {
Config config = utils.createConfig();
config.routing().setNetworkRouteConsistencyCheck(RoutingConfigGroup.NetworkRouteConsistencyCheck.disable);
MutableScenario scenario = (MutableScenario) ScenarioUtils.createScenario(ConfigUtils.createConfig());
MutableScenario scenario = (MutableScenario) ScenarioUtils.createScenario(config);
RoadPricingTestUtils.createNetwork2(scenario);
Network network = scenario.getNetwork();
// a basic toll where only the morning hours are tolled
RoadPricingSchemeImpl toll = RoadPricingUtils.addOrGetMutableRoadPricingScheme(ScenarioUtils.createScenario( ConfigUtils.createConfig() ) );
RoadPricingSchemeImpl toll = RoadPricingUtils.addOrGetMutableRoadPricingScheme(ScenarioUtils.createScenario( config ) );
toll.setType(RoadPricingScheme.TOLL_TYPE_DISTANCE);
toll.addLink(Id.create("5", Link.class));
toll.addLink(Id.create("11", Link.class));
Expand Down Expand Up @@ -308,11 +309,10 @@ void testLinkTollRouter() {
void testCordonTollRouter() {
Config config = utils.createConfig();
config.routing().setNetworkRouteConsistencyCheck(RoutingConfigGroup.NetworkRouteConsistencyCheck.disable);
MutableScenario scenario = (MutableScenario) ScenarioUtils.createScenario(ConfigUtils.createConfig());
MutableScenario scenario = (MutableScenario) ScenarioUtils.createScenario(config);
RoadPricingTestUtils.createNetwork2(scenario);
Network network = scenario.getNetwork();
// a basic toll where only the morning hours are tolled
RoadPricingSchemeImpl toll = RoadPricingUtils.addOrGetMutableRoadPricingScheme(ScenarioUtils.createScenario( ConfigUtils.createConfig() ) );
RoadPricingSchemeImpl toll = RoadPricingUtils.addOrGetMutableRoadPricingScheme(ScenarioUtils.createScenario( config ) );
// toll.setType(RoadPricingScheme.TOLL_TYPE_CORDON);
toll.setType(RoadPricingScheme.TOLL_TYPE_LINK);
toll.addLink(Id.create("5", Link.class));
Expand Down

0 comments on commit d2d25f3

Please sign in to comment.