boolean descriptionPositionNames,
boolean compareByEquals,
RouteCharacteristics sourceCharacteristics,
RouteCharacteristics targetCharacteristics) {
for (int i = 0; i < sourcePositions.size(); i++) {
NavigationPosition sourcePosition = sourcePositions.get(i);
NavigationPosition targetPosition = targetPositions.get(i);
comparePosition(sourceFormat, targetFormat, i, sourcePosition, targetPosition, descriptionPositionNames, sourceCharacteristics, targetCharacteristics);
}
if (!compareByEquals)
return;
for (int i = 0; i < sourcePositions.size(); i++) {
NavigationPosition sourcePosition = sourcePositions.get(i);
// don't fail if a position has been commented by us
if (sourcePosition.getDescription() == null)
sourcePosition.setDescription("Position " + (i + 1));
NavigationPosition targetPosition = targetPositions.get(i);
assertEquals("Position " + i + " is not equal", sourcePosition, targetPosition);
assertEquals(sourcePositions, targetPositions);
}
}