assertEquals(originalList.get(5), sortList.get(8));
}
public void test_sort_01_consumers_first() {
addVisitor(new TestProducerConsumer().setProducts("h").setConsumes("g"));
addVisitor(new TestConsumer("e", "f"));
addVisitor(new TestConsumer("b"));
addVisitor(new TestProducer("d", "e"));
addVisitor(new TestProducerConsumer().setProducts("g").setConsumes("c"));
addVisitor(new TestConsumer("d", "g"));
addVisitor(new TestVisitor());
addVisitor(new TestVisitor());
addVisitor(new TestProducer("a", "b", "c"));
Sorter.sort(sortList, Sorter.SortOrder.CONSUMERS_FIRST);