Fixed toString Test and added getRoute Test

This commit is contained in:
YaFedImYaEatIm
2016-09-18 23:14:47 +12:00
parent 739fce7ccf
commit 60bcc0dbf2
2 changed files with 25 additions and 2 deletions
@@ -268,6 +268,9 @@ public class Route {
* @return
*/
public RoutePath getRoutePath(){
if (getSourceAirport() == null || getDestinationAirport() == null){
return new RoutePath();
}
if (routePath == null) {
routePath = new RoutePath(
new Position(getSourceAirport().getLatitude(), getSourceAirport().getLongitude()),