-
Notifications
You must be signed in to change notification settings - Fork 117
Directions junction view api #1097
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
services-directions/src/main/java/com/mapbox/api/directions/v5/models/BannerView.java
Show resolved
Hide resolved
services-directions/src/main/java/com/mapbox/api/directions/v5/models/BannerView.java
Show resolved
Hide resolved
This will be a part of a semver major release, so it'll be |
services-directions/src/main/java/com/mapbox/api/directions/v5/models/BannerView.java
Show resolved
Hide resolved
services-directions/src/main/java/com/mapbox/api/directions/v5/models/BannerComponents.java
Outdated
Show resolved
Hide resolved
services-directions/src/main/java/com/mapbox/api/directions/v5/models/BannerView.java
Show resolved
Hide resolved
services-directions/src/main/java/com/mapbox/api/directions/v5/models/BannerComponents.java
Outdated
Show resolved
Hide resolved
services-directions/src/main/java/com/mapbox/api/directions/v5/models/BannerView.java
Show resolved
Hide resolved
services-directions/src/main/java/com/mapbox/api/directions/v5/models/BannerInstructions.java
Outdated
Show resolved
Hide resolved
services-directions/src/main/java/com/mapbox/api/directions/v5/models/BannerView.java
Show resolved
Hide resolved
services-directions/src/main/java/com/mapbox/api/directions/v5/models/BannerView.java
Show resolved
Hide resolved
services-directions/src/main/java/com/mapbox/api/directions/v5/models/BannerView.java
Show resolved
Hide resolved
services-directions/src/main/java/com/mapbox/api/directions/v5/models/BannerView.java
Show resolved
Hide resolved
f379c5f to
761bf4c
Compare
|
Muse analysis has completed. New issues were detected with line numbers outside of the pull request change set:
|
services-directions/src/main/java/com/mapbox/api/directions/v5/models/BannerView.java
Show resolved
Hide resolved
services-directions/src/main/java/com/mapbox/api/directions/v5/models/BannerView.java
Show resolved
Hide resolved
services-directions/src/main/java/com/mapbox/api/directions/v5/models/BannerView.java
Show resolved
Hide resolved
|
Awesome work and welcome to Mapbox Java! 😄 |
services-directions/src/main/java/com/mapbox/api/directions/v5/models/BannerView.java
Show resolved
Hide resolved
services-directions/src/main/java/com/mapbox/api/directions/v5/models/BannerView.java
Show resolved
Hide resolved
| String jsonString = responseFromJson1.toJson(); | ||
| BannerInstructions responseFromJson2 = BannerInstructions.fromJson(jsonString); | ||
|
|
||
| Assert.assertEquals(responseFromJson1, responseFromJson2); |
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.
NIT
assertEquals(responseFromJson1, responseFromJson2);
| } | ||
|
|
||
| @Test | ||
| public void fromtestToFromJson() { |
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.
Typo *fromtestToFromJson
|
|
||
| @Test | ||
| public void fromtestToFromJson() { | ||
| BannerInstructions responseFromJson1 = BannerInstructions.fromJson(BANNER_INSTRUCTION_JSON); |
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 thing
Could we improve naming here? Especially responseFromJson1 and responseFromJson2 😬
| } | ||
|
|
||
| @Test | ||
| public void fromtestToFromJson() { |
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 thing Could we rename the test so it's clearer (although not consistently applied 👀 at the "naming" convention of the rest of the tests)? We should also remove test prefix from tests names, it's implicit with the usage of @Test annotation.
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.
Just noticed these comments and agree with the nits. I'm not ignoring.
Think these were copy pasted so larger clean ups will happen during free time :)
| BannerInstructions responseFromJson = BannerInstructions.fromJson(BANNER_INSTRUCTION_JSON); | ||
|
|
||
| BannerView bannerView = responseFromJson.view(); | ||
| Assert.assertEquals(bannerView.text(), "CA01610_1_E"); |
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 as above re: Assert.assertEquals vs assertEquals
Adding support for junction views in the directions api https://github.com/mapbox/navigation-sdks/issues/194
Example banner instructions response which includes the view