Skip to content

Commit bfdbd4f

Browse files
Clean up test
1 parent 690ec4f commit bfdbd4f

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

application/src/test/java/org/opentripplanner/street/search/request/StreetSearchRequestMapperTest.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,9 @@ void mapVehicleWalking() {
9898
void mapTransferRequest(boolean arriveBy) {
9999
var from = new GenericLocation(null, id("STOP"), null, null);
100100
var to = GenericLocation.fromCoordinate(60.0, 20.0);
101-
var dateTime = Instant.parse("2022-11-10T10:00:00Z");
102101
var builder = builder()
103102
.withArriveBy(arriveBy)
104-
.withDateTime(dateTime)
103+
.withDateTime(INSTANT)
105104
.withFrom(from)
106105
.withTo(to)
107106
.withPreferences(it -> it.withWalk(walk -> walk.withSpeed(2.4)))
@@ -111,12 +110,11 @@ void mapTransferRequest(boolean arriveBy) {
111110

112111
var subject = StreetSearchRequestMapper.mapToTransferRequest(request).build();
113112

114-
assertEquals(Instant.EPOCH, subject.startTime());
115113
assertNull(subject.fromEnvelope());
116114
assertNull(subject.toEnvelope());
117115
assertTrue(subject.wheelchairEnabled());
118116
assertEquals(2.4, subject.walk().speed());
119-
assertEquals(Instant.ofEpochSecond(0), subject.startTime());
117+
assertEquals(Instant.EPOCH, subject.startTime());
120118
// arrive by must always be false for transfer requests
121119
assertFalse(subject.arriveBy());
122120
}

0 commit comments

Comments
 (0)