Skip to content

Commit

Permalink
Fix merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
vpaturet committed Sep 25, 2024
1 parent 7ed6c52 commit e15c3d0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,17 @@ public class PatternTestModel {
* Creates a trip pattern that has a stop pattern, trip times and a trip with a service id.
*/
public static TripPattern pattern() {
var pattern = TransitModelForTest
.tripPattern("1", ROUTE_1)
.withStopPattern(STOP_PATTERN)
.build();

var tt = ScheduledTripTimes
.of()
.withTrip(TRIP)
.withArrivalTimes("10:00 10:05")
.withDepartureTimes("10:00 10:05")
.build();
pattern.add(tt);
return pattern;

return TransitModelForTest
.tripPattern("1", ROUTE_1)
.withStopPattern(STOP_PATTERN)
.withScheduledTimeTableBuilder(builder -> builder.addTripTimes(tt))
.build();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ private Trip createTrip(TripInput tripInput) {
tripInput.stops().stream().map(TripInput.StopCall::stop).toList()
)
)
.withScheduledTimeTableBuilder(builder -> builder.addTripTimes(tripTimes))
.build();
pattern.add(tripTimes);

transitModel.addTripPattern(pattern.getId(), pattern);

Expand Down

0 comments on commit e15c3d0

Please sign in to comment.