-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added very simple logging and fixed a formating bug introduced into t…
…he json sample files when some heavy-handed auto formatting was performed in Eclipse.
- Loading branch information
1 parent
18ad933
commit 318ae0e
Showing
10 changed files
with
85 additions
and
44 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
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 @@ | ||
logging.file=route_tracker_api.log |
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
16 changes: 8 additions & 8 deletions
16
src/test/resources/sample_json_responses/error_bad_param.json
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
{ | ||
"bustime-response": { | ||
"error": [ | ||
{ | ||
"rt": "100000", | ||
"msg": "No data found for parameter" | ||
} | ||
] | ||
} | ||
"bustime-response": { | ||
"error": [ | ||
{ | ||
"rt": "1000", | ||
"msg": "No data found for parameter" | ||
} | ||
] | ||
} | ||
} |
5 changes: 3 additions & 2 deletions
5
src/test/resources/sample_json_responses/error_missing_param.json
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
|
||
{"bustime-response": {"error": [ { | ||
"msg": "rt parameter missing" | ||
} ] }} | ||
"msg": "Invalid API access key supplied" | ||
} ] }} |
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
15 changes: 14 additions & 1 deletion
15
src/test/resources/sample_json_responses/unwrapped_routes.json
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 |
---|---|---|
@@ -1 +1,14 @@ | ||
[{"rt":"1","rtnm":"Bronzeville/Union Station","rtclr":"#336633","rtdd":"1"},{"rt":"2","rtnm":"Hyde Park Express","rtclr":"#993366","rtdd":"2"}] | ||
[ | ||
{ | ||
"rt": "1", | ||
"rtnm": "Bronzeville/Union Station", | ||
"rtclr": "#336633", | ||
"rtdd": "1" | ||
}, | ||
{ | ||
"rt": "2", | ||
"rtnm": "Hyde Park Express", | ||
"rtclr": "#993366", | ||
"rtdd": "2" | ||
} | ||
] |