-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bf35839
commit 0e31b24
Showing
4 changed files
with
46 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...st/java/org/opentripplanner/routing/algorithm/mapping/GraphPathToItineraryMapperTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package org.opentripplanner.routing.algorithm.mapping; | ||
|
||
import static org.junit.jupiter.api.Assertions.assertFalse; | ||
|
||
import org.junit.jupiter.api.Test; | ||
import org.opentripplanner._support.time.ZoneIds; | ||
import org.opentripplanner.astar.model.GraphPath; | ||
import org.opentripplanner.routing.services.notes.StreetNotesService; | ||
import org.opentripplanner.street.search.state.TestStateBuilder; | ||
|
||
class GraphPathToItineraryMapperTest { | ||
|
||
@Test | ||
void isSearchWindowAware() { | ||
var mapper = new GraphPathToItineraryMapper(ZoneIds.UTC, new StreetNotesService(), 1); | ||
var state = TestStateBuilder.ofWalking().streetEdge().streetEdge().streetEdge().build(); | ||
var itin = mapper.generateItinerary(new GraphPath<>(state)); | ||
assertFalse(itin.isSearchWindowAware()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters