Skip to content

Commit

Permalink
fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
ge0ffrey committed Dec 21, 2015
1 parent 1f72f32 commit bfd598d
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -18,6 +18,8 @@


import org.junit.Test; import org.junit.Test;
import org.optaplanner.core.config.heuristic.selector.common.decorator.SelectionSorterOrder; import org.optaplanner.core.config.heuristic.selector.common.decorator.SelectionSorterOrder;
import org.optaplanner.core.impl.testdata.domain.TestdataSolution;
import org.optaplanner.core.impl.testdata.domain.shadow.cyclic.seven.TestdataSevenNonCyclicShadowedSolution;


import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collections; import java.util.Collections;
Expand All @@ -33,13 +35,13 @@ public void sort() {
Integer[] baseArray = new Integer[] {3, 4, 3, 5, 1}; Integer[] baseArray = new Integer[] {3, 4, 3, 5, 1};
List<Integer> arrayToSort = new ArrayList<Integer>(); List<Integer> arrayToSort = new ArrayList<Integer>();
Collections.addAll(arrayToSort, baseArray); Collections.addAll(arrayToSort, baseArray);
ComparatorSelectionSorter<Integer> selectionSorter = new ComparatorSelectionSorter<Integer>(new TestComparator(), SelectionSorterOrder.ASCENDING); ComparatorSelectionSorter<TestdataSolution, Integer> selectionSorter = new ComparatorSelectionSorter<TestdataSolution, Integer>(new TestComparator(), SelectionSorterOrder.ASCENDING);
selectionSorter.sort(null, arrayToSort); selectionSorter.sort(null, arrayToSort);
assertTrue(ascendingSort(arrayToSort)); assertTrue(ascendingSort(arrayToSort));


arrayToSort = new ArrayList<Integer>(); arrayToSort = new ArrayList<Integer>();
Collections.addAll(arrayToSort, baseArray); Collections.addAll(arrayToSort, baseArray);
selectionSorter = new ComparatorSelectionSorter<Integer>(new TestComparator(), SelectionSorterOrder.DESCENDING); selectionSorter = new ComparatorSelectionSorter<TestdataSolution, Integer>(new TestComparator(), SelectionSorterOrder.DESCENDING);
selectionSorter.sort(null, arrayToSort); selectionSorter.sort(null, arrayToSort);
assertTrue(descendingSort(arrayToSort)); assertTrue(descendingSort(arrayToSort));
} }
Expand Down

0 comments on commit bfd598d

Please sign in to comment.