File tree 1 file changed +3
-0
lines changed
src/test/java/org/opentripplanner
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -227,14 +227,17 @@ public void planWithReluctance() throws IOException {
227
227
assertEquals (Optional .empty (), builder .build ().walkReluctance ());
228
228
assertEquals (Optional .empty (), builder .build ().bikeReluctance ());
229
229
assertEquals (Optional .empty (), builder .build ().carReluctance ());
230
+ assertEquals (Optional .empty (), builder .build ().bikeWalkingReluctance ());
230
231
231
232
// Plan with high walk reluctance - should prefer transit
232
233
builder .withWalkReluctance (5.0f );
233
234
builder .withBikeReluctance (4.0f );
234
235
builder .withCarReluctance (3.0f );
236
+ builder .withBikeWalkingReluctance (2.0f );
235
237
assertEquals (Optional .of (5.0f ), builder .build ().walkReluctance ());
236
238
assertEquals (Optional .of (4.0f ), builder .build ().bikeReluctance ());
237
239
assertEquals (Optional .of (3.0f ), builder .build ().carReluctance ());
240
+ assertEquals (Optional .of (2.0f ), builder .build ().bikeWalkingReluctance ());
238
241
}
239
242
240
243
@ Test
You can’t perform that action at this time.
0 commit comments