File tree Expand file tree Collapse file tree 3 files changed +20
-7
lines changed
main/java/org/opentripplanner/client/parameters
test/java/org/opentripplanner Expand file tree Collapse file tree 3 files changed +20
-7
lines changed Original file line number Diff line number Diff line change @@ -68,22 +68,22 @@ public TripPlanParametersBuilder withWalkReluctance(Double wr) {
68
68
return this ;
69
69
}
70
70
71
- public TripPlanParametersBuilder withCarReluctance (double cr ) {
71
+ public TripPlanParametersBuilder withCarReluctance (Double cr ) {
72
72
this .carReluctance = cr ;
73
73
return this ;
74
74
}
75
75
76
- public TripPlanParametersBuilder withBikeReluctance (double br ) {
76
+ public TripPlanParametersBuilder withBikeReluctance (Double br ) {
77
77
this .bikeReluctance = br ;
78
78
return this ;
79
79
}
80
80
81
- public TripPlanParametersBuilder withBikeWalkingReluctance (double bwr ) {
81
+ public TripPlanParametersBuilder withBikeWalkingReluctance (Double bwr ) {
82
82
this .bikeWalkingReluctance = bwr ;
83
83
return this ;
84
84
}
85
85
86
- public TripPlanParametersBuilder withWalkSpeed (double ws ) {
86
+ public TripPlanParametersBuilder withWalkSpeed (Double ws ) {
87
87
this .walkSpeed = ws ;
88
88
return this ;
89
89
}
Original file line number Diff line number Diff line change @@ -246,9 +246,9 @@ public void planWithReluctance() {
246
246
247
247
// Plan with high walk reluctance - should prefer transit
248
248
builder .withWalkReluctance (5.0d );
249
- builder .withBikeReluctance (4.0f );
250
- builder .withCarReluctance (3.0f );
251
- builder .withBikeWalkingReluctance (2.0f );
249
+ builder .withBikeReluctance (4.0d );
250
+ builder .withCarReluctance (3.0d );
251
+ builder .withBikeWalkingReluctance (2.0d );
252
252
assertEquals (Optional .of (5.0 ), builder .build ().walkReluctance ());
253
253
assertEquals (Optional .of (4.0 ), builder .build ().bikeReluctance ());
254
254
assertEquals (Optional .of (3.0 ), builder .build ().carReluctance ());
Original file line number Diff line number Diff line change
1
+ package org .opentripplanner .client .parameters ;
2
+
3
+ import static org .junit .jupiter .api .Assertions .*;
4
+
5
+ import org .junit .jupiter .api .Test ;
6
+
7
+ class TripPlanParametersBuilderTest {
8
+
9
+ @ Test
10
+ void copy () {
11
+ var builder = new TripPlanParametersBuilder ().copy ();
12
+ }
13
+ }
You can’t perform that action at this time.
0 commit comments