-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test case for decoding a user profile that is JSON encoded
This test case covers what happens when an avatar points to a URL that is not an image, or at least can't be read by ImageIO.read(). Also, the last missing bits of the package `org.openstreetmap.josm.plugins.mapillary.utils.api` have received test coverage, we are now at 100% for this package.
- Loading branch information
Showing
3 changed files
with
40 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"about": "Having a non-image avatar", | ||
"avatar": "https://example.org", | ||
"created_at": "2016-01-31T01:47:28.000+0500", | ||
"key": "abcdefg1", | ||
"username": "mapillary_userÄ2!" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters