Test coverage 100%

This commit is contained in:
2017-01-02 15:15:53 +01:00
parent 060fe2f6b9
commit ef7423e4ca
9 changed files with 436 additions and 13 deletions

View File

@ -197,7 +197,7 @@ public class UraClient {
*
* @return the list
*/
public List<Stop> listStops() {
public List<Stop> getStops() {
List<Stop> stops = new ArrayList<>();
try (InputStream is = requestInstant(REQUEST_STOP, null, null, null, null, null);
BufferedReader br = new BufferedReader(new InputStreamReader(is))) {

View File

@ -69,7 +69,6 @@ public class Stop {
longitude = (Double)raw.get(6);
else
throw new IOException("Field 6 not of expected type Double, found " + raw.get(6).getClass().getSimpleName());
}
public String getId() {