Skip to content

Commit

Permalink
STYLE: NAV-99 - Format project
Browse files Browse the repository at this point in the history
  • Loading branch information
munterfi committed Jun 12, 2024
1 parent 3f5f7ee commit 086c8a8
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Docker publish

on:
release:
types: [created]
types: [ created ]

env:
REGISTRY: ghcr.io
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Maven publish

on:
release:
types: [created]
types: [ created ]

jobs:
publish:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ public GtfsToRaptorConverter(GtfsSchedule schedule, int sameStationTransferTime)
this(schedule, List.of(), sameStationTransferTime);
}

public GtfsToRaptorConverter(GtfsSchedule schedule, List<TransferGenerator.Transfer> additionalTransfers, int sameStationTransferTime) {
public GtfsToRaptorConverter(GtfsSchedule schedule, List<TransferGenerator.Transfer> additionalTransfers,
int sameStationTransferTime) {
this.partitioner = new GtfsRoutePartitioner(schedule);
this.additionalTransfers = additionalTransfers;
this.schedule = schedule;
Expand Down
3 changes: 2 additions & 1 deletion src/test/java/ch/naviqore/Benchmark.java
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ private static Raptor initializeRaptor(GtfsSchedule schedule) throws Interrupted
SAME_STATION_TRANSFER_TIME);
additionalGeneratedTransfers.addAll(sameStationTransferGenerator.generateTransfers(schedule));

Raptor raptor = new GtfsToRaptorConverter(schedule, additionalGeneratedTransfers, SAME_STATION_TRANSFER_TIME).convert(SCHEDULE_DATE);
Raptor raptor = new GtfsToRaptorConverter(schedule, additionalGeneratedTransfers,
SAME_STATION_TRANSFER_TIME).convert(SCHEDULE_DATE);
manageResources();
return raptor;
}
Expand Down
3 changes: 1 addition & 2 deletions src/test/java/ch/naviqore/raptor/RaptorTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,7 @@ void takeFasterRouteOfOverlappingRoutes(RaptorTestBuilder builder) {
void takeSlowerRouteOfOverlappingRoutesDueToEarlierDepartureTime(RaptorTestBuilder builder) {
// Create Two Versions of the same route with different travel speeds and different departure times
Raptor raptor = builder.withAddRoute1_AG()
.withAddRoute1_AG("R1X", 15, 30, 3,
RaptorTestBuilder.DEFAULT_DWELL_TIME)
.withAddRoute1_AG("R1X", 15, 30, 3, RaptorTestBuilder.DEFAULT_DWELL_TIME)
.build();
List<Connection> connections = raptor.routeEarliestArrival(STOP_A, STOP_G, EIGHT_AM);

Expand Down

0 comments on commit 086c8a8

Please sign in to comment.