assertEquals(originalList.get(2), sortList.get(1));
assertEquals(originalList.get(5), sortList.get(0));
}
public void test_sort_no_producers_consumers_producersfirst() {
addVisitor(new TestVisitor());
addVisitor(new TestVisitor());
addVisitor(new TestVisitor());
addVisitor(new TestVisitor());
addVisitor(new TestVisitor());
addVisitor(new TestVisitor());
addVisitor(new TestVisitor());
addVisitor(new TestVisitor());
addVisitor(new TestVisitor());
Sorter.sort(sortList, Sorter.SortOrder.PRODUCERS_FIRST);
assertEquals(originalList.get(0), sortList.get(0));
assertEquals(originalList.get(1), sortList.get(1));
assertEquals(originalList.get(2), sortList.get(2));