assertSame(last, list.getLast(null, null, 1f));
assertNull(list.getLast(null, null, 6f));
}
public void testGetNext() {
final RouteList list = new RouteList();
assertNull(list.getNext(null, null, 1f));
final Route first = new MockScoringRoute(5);
final Route second = new MockScoringRoute(5);
final Route third = new MockScoringRoute(5);
list.add(first);
list.add(second);
list.add(third);
assertSame(first, list.getNext(null, null, 1f));
assertSame(second, list.getNext(null, null, 1f));
assertSame(third, list.getNext(null, null, 1f));
assertSame(first, list.getNext(null, null, 1f));
}