-
Notifications
You must be signed in to change notification settings - Fork 319
Check for valid BannerInstructions when milestones are enabled #936
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
Conversation
9eaf8a2 to
7dfc5da
Compare
Guardiola31337
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.
Minor comments not blocking the PR.
Good job @danesfeder
| @Test(expected = MissingFormatArgumentException.class) | ||
| public void validDirectionsRoute_isInvalidWithNullRouteOptions() throws Exception { | ||
| DirectionsRoute route = buildTestDirectionsRoute(DIRECTIONS_WITHOUT_VOICE_INSTRUCTIONS); | ||
| route = route.toBuilder().routeOptions(null).build(); |
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.
What about extracting the null into an explaining variable to make clear what we're specifically testing?
|
|
||
| @Test(expected = MissingFormatArgumentException.class) | ||
| public void validDirectionsRoute_isInvalidWithNullInstructions() throws Exception { | ||
| DirectionsRoute route = buildRouteWithNullInstructions(); |
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.
What about renaming route to make clear what we're specifically testing?
|
|
||
| @Test(expected = MissingFormatArgumentException.class) | ||
| public void validDirectionsRoute_isInvalidWithFalseVoiceInstructions() throws Exception { | ||
| DirectionsRoute route = buildRouteWithFalseVoiceInstructions(); |
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.
Same here ☝️
|
|
||
| @Test(expected = MissingFormatArgumentException.class) | ||
| public void validDirectionsRoute_isInvalidWithFalseBannerInstructions() throws Exception { | ||
| DirectionsRoute route = buildRouteWithFalseBannerInstructions(); |
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.
Same here ☝️
ce54d52 to
6466f28
Compare
6466f28 to
9b3b5e6
Compare
If default milestones are enabled (
Voice/Bannerinstructions), we need to check for both in theRouteOptionsbefore we proceed with processing. We are currently only checking for voice.