-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Convert remaining GTFS-RT tests to module tests #5916
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert remaining GTFS-RT tests to module tests #5916
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev-2.x #5916 +/- ##
==========================================
Coverage 69.63% 69.63%
Complexity 17129 17129
==========================================
Files 1937 1937
Lines 73742 73738 -4
Branches 7546 7545 -1
==========================================
- Hits 51351 51349 -2
Misses 19754 19754
+ Partials 2637 2635 -2 ☔ View full report in Codecov by Sentry. |
habrahamsson-skanetrafiken
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! Just some minor comments
src/test/java/org/opentripplanner/updater/trip/moduletests/rejection/InvalidTripIdTest.java
Outdated
Show resolved
Hide resolved
src/test/java/org/opentripplanner/updater/trip/moduletests/delay/DelayedTest.java
Show resolved
Hide resolved
src/test/java/org/opentripplanner/updater/trip/moduletests/delay/SkippedTest.java
Outdated
Show resolved
Hide resolved
src/test/java/org/opentripplanner/updater/trip/moduletests/delay/SkippedTest.java
Outdated
Show resolved
Hide resolved
ccca33b to
d4ff444
Compare
|
@habrahamsson-skanetrafiken I extract a few re-usable methods and made the tests a lot more compact and readable. |
d4ff444 to
0081a07
Compare
0081a07 to
02cb8f7
Compare
habrahamsson-skanetrafiken
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Much more readable! Approving with a minor comment that you can fix if you want to.
src/test/java/org/opentripplanner/updater/trip/moduletests/addition/AddedTest.java
Outdated
Show resolved
Hide resolved
src/test/java/org/opentripplanner/test/support/UpdateResultAssertions.java
Outdated
Show resolved
Hide resolved
src/test/java/org/opentripplanner/test/support/UpdateResultAssertions.java
Outdated
Show resolved
Hide resolved
src/test/java/org/opentripplanner/updater/trip/RealtimeTestEnvironment.java
Show resolved
Hide resolved
src/test/java/org/opentripplanner/updater/trip/RealtimeTestEnvironment.java
Show resolved
Hide resolved
src/test/java/org/opentripplanner/updater/trip/RealtimeTestEnvironment.java
Outdated
Show resolved
Hide resolved
|
Since this has already been approved earlier and there were only minor changes since then, I guess you can merge this PR. |
Summary
This converts the remaining GTFS-RT realtime tests to module tests.
It also does a tiny bit of refactoring in the update handling code.
Issue
#4002
Unit tests
Yes.