|
1 | 1 | package org.opentripplanner.street.search.state; |
2 | 2 |
|
3 | 3 | import static org.junit.jupiter.api.Assertions.assertTrue; |
4 | | -import static org.opentripplanner.routing.algorithm.raptoradapter.router.street.AccessEgressType.EGRESS; |
5 | 4 |
|
6 | 5 | import java.time.Instant; |
7 | 6 | import java.time.OffsetDateTime; |
@@ -88,18 +87,6 @@ public static TestStateBuilder ofScooterRental() { |
88 | 87 | return new TestStateBuilder(StreetMode.SCOOTER_RENTAL); |
89 | 88 | } |
90 | 89 |
|
91 | | - /** |
92 | | - * Creates a state that starts the scooter rental in arriveBy mode, so starting with |
93 | | - * a rental scooter and going backwards until it finds a rental vertex where to drop it. |
94 | | - */ |
95 | | - public static TestStateBuilder ofScooterRentalArriveBy() { |
96 | | - return new TestStateBuilder(StreetMode.SCOOTER_RENTAL, EGRESS); |
97 | | - } |
98 | | - |
99 | | - public static TestStateBuilder ofBikeRental() { |
100 | | - return new TestStateBuilder(StreetMode.BIKE_RENTAL); |
101 | | - } |
102 | | - |
103 | 90 | public static TestStateBuilder ofCycling() { |
104 | 91 | return new TestStateBuilder(StreetMode.BIKE); |
105 | 92 | } |
@@ -193,34 +180,13 @@ public TestStateBuilder pickUpCarFromStation() { |
193 | 180 | ); |
194 | 181 | } |
195 | 182 |
|
196 | | - public TestStateBuilder pickUpFreeFloatingCar() { |
197 | | - return pickUpRentalVehicle( |
198 | | - RentalFormFactor.CAR, |
199 | | - TestFreeFloatingRentalVehicleBuilder.of().withVehicleCar().build() |
200 | | - ); |
201 | | - } |
202 | | - |
203 | 183 | public TestStateBuilder pickUpFreeFloatingScooter() { |
204 | 184 | return pickUpRentalVehicle( |
205 | 185 | RentalFormFactor.SCOOTER, |
206 | 186 | TestFreeFloatingRentalVehicleBuilder.of().withVehicleScooter().build() |
207 | 187 | ); |
208 | 188 | } |
209 | 189 |
|
210 | | - public TestStateBuilder pickUpBikeFromStation() { |
211 | | - return pickUpRentalVehicle( |
212 | | - RentalFormFactor.BICYCLE, |
213 | | - TestVehicleRentalStationBuilder.of().withVehicleTypeElectricBicycle(10, 10).build() |
214 | | - ); |
215 | | - } |
216 | | - |
217 | | - public TestStateBuilder pickUpFreeFloatingBike() { |
218 | | - return pickUpRentalVehicle( |
219 | | - RentalFormFactor.BICYCLE, |
220 | | - TestFreeFloatingRentalVehicleBuilder.of().withVehicleBicycle().build() |
221 | | - ); |
222 | | - } |
223 | | - |
224 | 190 | /** |
225 | 191 | * Traverse an elevator (onboard, hop and offboard edges). |
226 | 192 | */ |
|
0 commit comments