Skip to content

Commit c3bdc36

Browse files
Apply review feedback
1 parent 00e3bac commit c3bdc36

File tree

1 file changed

+8
-8
lines changed
  • application/src/test/java/org/opentripplanner/apis/gtfs/datafetchers

1 file changed

+8
-8
lines changed

application/src/test/java/org/opentripplanner/apis/gtfs/datafetchers/LegImplTest.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class LegImplTest implements PlanTestConstants {
6565
.withAlightStopIndexInPattern(4)
6666
.withTripPattern(PATTERN)
6767
.build();
68-
private static final LegImpl SUBJECT = new LegImpl();
68+
private static final LegImpl IMPL = new LegImpl();
6969
private static final Map<String, Object> INCLUDE_STOP_ONLY = Map.of(
7070
"include",
7171
List.of(GraphQLTypes.GraphQLStopType.STOP)
@@ -75,34 +75,34 @@ class LegImplTest implements PlanTestConstants {
7575
@Test
7676
void intermediateStops() throws Exception {
7777
var env = dataFetchingEnvironment(LEG);
78-
var stops = SUBJECT.intermediateStops().get(env);
78+
var stops = IMPL.intermediateStops().get(env);
7979
assertThat(stops).containsExactly(REGULAR_STOP, AREA_STOP, GROUP_STOP);
8080
}
8181

8282
@Test
83-
void intermediateStopsWithInclude() throws Exception {
83+
void intermediateStopsWithFilter() throws Exception {
8484
var env = dataFetchingEnvironment(LEG, INCLUDE_STOP_ONLY);
85-
var stops = SUBJECT.intermediateStops().get(env);
85+
var stops = IMPL.intermediateStops().get(env);
8686
assertThat(stops).containsExactly(REGULAR_STOP);
8787
}
8888

8989
@Test
9090
void intermediatePlaces() throws Exception {
9191
var env = dataFetchingEnvironment(LEG);
92-
var stops = toStops(SUBJECT.intermediatePlaces().get(env));
92+
var stops = toStops(IMPL.intermediatePlaces().get(env));
9393
assertThat(stops).containsExactly(REGULAR_STOP, AREA_STOP, GROUP_STOP);
9494
}
9595

9696
@Test
9797
void walkLeg() throws Exception {
9898
var env = dataFetchingEnvironment(WALK_LEG);
99-
assertNull(SUBJECT.intermediatePlaces().get(env));
99+
assertNull(IMPL.intermediatePlaces().get(env));
100100
}
101101

102102
@Test
103-
void walkLegWithInclude() throws Exception {
103+
void walkLegWithFilter() throws Exception {
104104
var env = dataFetchingEnvironment(WALK_LEG, INCLUDE_STOP_ONLY);
105-
assertNull(SUBJECT.intermediateStops().get(env));
105+
assertNull(IMPL.intermediateStops().get(env));
106106
}
107107

108108
private static Stream<StopLocation> toStops(Iterable<StopArrival> stopArrivals) {

0 commit comments

Comments
 (0)