Fixed review stats tests.
This commit is contained in:
parent
1c39ff2b27
commit
e88879226c
@ -76,7 +76,7 @@ public class ReviewStatsTest
|
|||||||
String report = ReviewStatsReporter.reportDuration(datas, currentReview.getDuration());
|
String report = ReviewStatsReporter.reportDuration(datas, currentReview.getDuration());
|
||||||
logger.debug("Report=" + report);
|
logger.debug("Report=" + report);
|
||||||
Assert.assertTrue(StringUtils.contains(report,
|
Assert.assertTrue(StringUtils.contains(report,
|
||||||
"Statistiques sur la durée de la revue (17 mn) : position 3 (min=14 mn,moy=17,2 mn,max=20 mn), fréquence 7/14 (50 %)"));
|
"Statistiques sur la durée de la revue (17 min) : position 3 (min.=14 min, moy.=17,2 min, max.=20 min), fréquence 7/14 (50 %)"));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -114,7 +114,7 @@ public class ReviewStatsTest
|
|||||||
ReviewData currentReview = new ReviewData(LocalDateTime.now(), 42000, 17);
|
ReviewData currentReview = new ReviewData(LocalDateTime.now(), 42000, 17);
|
||||||
String report = ReviewStatsReporter.reportNewMaxUserCount(datas, currentReview.getUserCount());
|
String report = ReviewStatsReporter.reportNewMaxUserCount(datas, currentReview.getUserCount());
|
||||||
logger.debug("Report=" + report);
|
logger.debug("Report=" + report);
|
||||||
Assert.assertTrue(StringUtils.startsWith(report, "Nouveau record"));
|
Assert.assertTrue(StringUtils.startsWith(report, "Nouveau record de personnes participantes !"));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -134,8 +134,8 @@ public class ReviewStatsTest
|
|||||||
datas.add(currentReview);
|
datas.add(currentReview);
|
||||||
String report = ReviewStatsReporter.reportUserCount(datas, currentReview.getUserCount());
|
String report = ReviewStatsReporter.reportUserCount(datas, currentReview.getUserCount());
|
||||||
logger.debug("Report=" + report);
|
logger.debug("Report=" + report);
|
||||||
Assert.assertTrue(StringUtils.equals(report,
|
Assert.assertEquals(report,
|
||||||
"Statistiques sur le nombre de participants (12) : position 3 (min=2,moy=6,6,max=14), fréquence 4/312 (1 %)"));
|
"Statistiques sur la participation à la revue (12 personnes) : position 3 (min.=2, moy.=6,6, max.=14), fréquence 4/312 (1 %)");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user