added test verdict that actually uses the total rank comparator

Change-Id: I0f3bbe837fdf5d69e2d92817e7dc15818805c233
This commit is contained in:
Axel Uhl committed 2018-07-18 22:19:58 +02:00
1 parent 6d9ec55b35
commit c3f57fdc9a
1 file changed
+5 -2
@@ -435,7 +435,7 @@ public class LeaderboardScoringAndRankingTestForLowPoints extends LeaderboardSco
}
/**
* In this test the no finalist reaches two wins before terminating (eg. due to bad weather) all finalists should be
* In this test no finalist reaches two wins before terminating (eg. due to bad weather) all finalists should be
* scored with Low_Points restarting at 0 for the medal series. The non finalists score should not change during the
* medalseries.
*/
@@ -641,7 +641,10 @@ public class LeaderboardScoringAndRankingTestForLowPoints extends LeaderboardSco
Assert.assertEquals(10.0, leaderboard.getNetPoints(preFirst, m2later), EPSILON);
Assert.assertEquals(18, leaderboard.getNetPoints(preThird, m2later), EPSILON);
Assert.assertEquals(24, leaderboard.getNetPoints(preFourth, m2later), EPSILON);
Assert.assertEquals(1, leaderboard.getTotalRankOfCompetitor(preSecond, m2later));
Assert.assertEquals(2, leaderboard.getTotalRankOfCompetitor(preFirst, m2later));
Assert.assertEquals(3, leaderboard.getTotalRankOfCompetitor(preThird, m2later));
Assert.assertEquals(4, leaderboard.getTotalRankOfCompetitor(preFourth, m2later));
List<Pair<Competitor, Double>> afterFinalResults = createCompetitorResultForTimestamp(m2later, leaderboard);
assertNonFinalistsAreBehindFinalistsAndNotChanged(preSeriesScoreRankResult, afterFinalResults);
}