From 391af1ce6a569aa18d73ef7da5b1c7335d9edba1 Mon Sep 17 00:00:00 2001 From: Ricardo Ewert Date: Thu, 14 Nov 2024 14:02:47 +0100 Subject: [PATCH] fix tests --- .../matsim/prepare/commercial/CommercialTrafficUtilsTest.java | 2 +- .../commercial/DefaultCommercialServiceTimeCalculatorTest.java | 2 +- .../commercial/DefaultCommercialVehicleSelectorTest.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/java/org/matsim/prepare/commercial/CommercialTrafficUtilsTest.java b/src/test/java/org/matsim/prepare/commercial/CommercialTrafficUtilsTest.java index baf5e51..ca36733 100644 --- a/src/test/java/org/matsim/prepare/commercial/CommercialTrafficUtilsTest.java +++ b/src/test/java/org/matsim/prepare/commercial/CommercialTrafficUtilsTest.java @@ -76,7 +76,7 @@ void testGetters() { person.getAttributes().putAttribute("origin_y", 2.0); person.getAttributes().putAttribute("destination_x", 3.0); person.getAttributes().putAttribute("destination_y", 4.0); - person.getAttributes().putAttribute("goods_type", "100"); + person.getAttributes().putAttribute("goodsType", "100"); person.getAttributes().putAttribute("tons_per_year", 500.0); person.getAttributes().putAttribute("origin_locationId", "originLocationId"); person.getAttributes().putAttribute("destination_locationId", "destinationLocationId"); diff --git a/src/test/java/org/matsim/prepare/commercial/DefaultCommercialServiceTimeCalculatorTest.java b/src/test/java/org/matsim/prepare/commercial/DefaultCommercialServiceTimeCalculatorTest.java index c189ecd..c1f4009 100644 --- a/src/test/java/org/matsim/prepare/commercial/DefaultCommercialServiceTimeCalculatorTest.java +++ b/src/test/java/org/matsim/prepare/commercial/DefaultCommercialServiceTimeCalculatorTest.java @@ -23,7 +23,7 @@ void setUp() { private Person createFreightDemandDataRelation(int goodsType) { Person freightDemandDataRelation = PopulationUtils.getFactory().createPerson(Id.createPersonId("exampleFreightDemandDataRelation")); - freightDemandDataRelation.getAttributes().putAttribute("goods_type", goodsType); + freightDemandDataRelation.getAttributes().putAttribute("goodsType", goodsType); return freightDemandDataRelation; } diff --git a/src/test/java/org/matsim/prepare/commercial/DefaultCommercialVehicleSelectorTest.java b/src/test/java/org/matsim/prepare/commercial/DefaultCommercialVehicleSelectorTest.java index 4108d98..5d94a15 100644 --- a/src/test/java/org/matsim/prepare/commercial/DefaultCommercialVehicleSelectorTest.java +++ b/src/test/java/org/matsim/prepare/commercial/DefaultCommercialVehicleSelectorTest.java @@ -34,7 +34,7 @@ void setUp() { private Person createFreightDemandDataRelation(String transportType, int goodsType) { Person freightDemandDataRelation = PopulationUtils.getFactory().createPerson(Id.createPersonId("exampleFreightDemandDataRelation")); - freightDemandDataRelation.getAttributes().putAttribute("goods_type", goodsType); + freightDemandDataRelation.getAttributes().putAttribute("goodsType", goodsType); freightDemandDataRelation.getAttributes().putAttribute("transportType", transportType); return freightDemandDataRelation; }