Chris Jaekl [Tue, 28 Nov 2017 13:03:32 +0000 (22:03 +0900)]
Bring the coverage analysis of the unit test suite back into a runnable state.
It seems that my system upgrade a few weeks ago (which changed the default JVM from 8 to 9)
has made jcov unhappy. I'm adding a reference to JAVA_HOME, so that I can (temporarily!)
force Java 8 until I figure out what to do about jcov and Java 9.
Also disabling the 2nd run (under server local locale) because jcov seems unhappy about
that, too, at the moment, for reasons that remain unclear.
This change should bring things back to a runnable state.
Chris Jaekl [Mon, 24 Aug 2015 12:53:18 +0000 (21:53 +0900)]
Fix issue with inconsistent formatting of "GPS off" buses.
OC Transpo usually reports a bus with no GPS data as having a
"GPS last read" time of (-1) minutes ago. But sometimes it reports
it as (-2), for reasons that aren't clear (at least, not to me).
The code was applying an "== (-1)" test in one spot, but a "< 0"
test in another; inconsistency is not good, nor is repeating a
conditional test unnecessarily.
Chris Jaekl [Sun, 21 Dec 2014 03:24:59 +0000 (22:24 -0500)]
Add ability to see raw response from server when something goes wrong. (OC Transpo returns a non-html plain-text response when things go wrong). Also, clean up a warning about deprecation in one unit test.
Chris Jaekl [Sat, 13 Dec 2014 05:02:45 +0000 (00:02 -0500)]
Identify bad responses coming back from the server, and throw a specific exception. Eventual goal is to react to this exception with a user-friendly error page.