* @param toEdgeID The destination edge.
*/
private void checkStartBelongsToDestination(String fromEdgeID, String toEdgeID) {
if (testPart == TestPart.START_AND_DESTINATION_PARSING_TRIPS || testPart == TestPart.START_AND_DESTINATION_PARSING_ROUTES) {
// check, whether the start area contains this area as a destination area
AreaModel startArea = getAreaByEdgeID(fromEdgeID);
AreaModel destinationArea = getAreaByEdgeID(toEdgeID);
if (!startArea.getDestinationAreas().contains(destinationArea)) {
Assert.fail("ScenariosTest: start area with edge " + fromEdgeID + " does not contain destination area with edge "
+ toEdgeID);
}
} else if (testPart == TestPart.WITHOUT_START_PARSING_TRIPS || testPart == TestPart.WITHOUT_START_PARSING_ROUTES) {
// check, whether a destination area contains this edge
AreaModel destinationArea = getAreaByEdgeID(toEdgeID);
if (destinationArea == null) {
Assert.fail("ScenariosTest: no destination area contains destination edge " + toEdgeID);
}
// check, whether the network contains this start edge
EdgeModel startEdge = getEdgeByEdgeID(fromEdgeID);
if (startEdge == null) {
Assert.fail("ScenariosTest: street network does not contain start edge " + fromEdgeID);
}
} else if (testPart == TestPart.WITHOUT_DESTINATION_PARSING_TRIPS
|| testPart == TestPart.WITHOUT_DESTINATION_PARSING_ROUTES) {
// check, whether a start area contains this edge
AreaModel startArea = getAreaByEdgeID(fromEdgeID);
if (startArea == null) {
Assert.fail("ScenariosTest: no start area contains start edge " + fromEdgeID);
}
// check, whether the network contains this destination edge