@Test
public void equalCount() {
TotalRankSolverBenchmarkRankingWeightFactory factory = new TotalRankSolverBenchmarkRankingWeightFactory();
List<SolverBenchmark> solverBenchmarkList = new ArrayList<SolverBenchmark>();
SolverBenchmark a = new SolverBenchmark(null);
List<SingleBenchmark> aSingleBenchmarkList = new ArrayList<SingleBenchmark>();
addSingleBenchmark(aSingleBenchmarkList, -5000, -90, -5000);
addSingleBenchmark(aSingleBenchmarkList, -900, -90, -5000);
addSingleBenchmark(aSingleBenchmarkList, -90, -90, -5000);
a.setSingleBenchmarkList(aSingleBenchmarkList); // 0 wins - 1 equals - 5 losses
a.benchmarkingEnded();
solverBenchmarkList.add(a);
SolverBenchmark b = new SolverBenchmark(null);
List<SingleBenchmark> bSingleBenchmarkList = new ArrayList<SingleBenchmark>();
addSingleBenchmark(bSingleBenchmarkList, -1000, -20, -1000); // Wins vs a - wins vs c
addSingleBenchmark(bSingleBenchmarkList, -200, -20, -1000); // Wins vs a - loses vs c
addSingleBenchmark(bSingleBenchmarkList, -20, -20, -1000); // Wins vs a - loses vs c
b.setSingleBenchmarkList(bSingleBenchmarkList); // 4 wins - 0 equals - 2 losses
b.benchmarkingEnded();
solverBenchmarkList.add(b);
SolverBenchmark c = new SolverBenchmark(null);
List<SingleBenchmark> cSingleBenchmarkList = new ArrayList<SingleBenchmark>();
addSingleBenchmark(cSingleBenchmarkList, -5000, -10, -5000); // Loses vs b, Equals vs a
addSingleBenchmark(cSingleBenchmarkList, -100, -10, -5000); // Wins vs a - wins vs b
addSingleBenchmark(cSingleBenchmarkList, -10, -10, -5000); // Wins vs a - wins vs b
c.setSingleBenchmarkList(cSingleBenchmarkList); // 4 wins - 1 equals - 1 losses
c.benchmarkingEnded();
solverBenchmarkList.add(c);
Comparable aWeight = factory.createRankingWeight(solverBenchmarkList, a);
Comparable bWeight = factory.createRankingWeight(solverBenchmarkList, b);
Comparable cWeight = factory.createRankingWeight(solverBenchmarkList, c);