diff --git a/YACOSTest/src/org/yacos/tests/core/EvaluationManagerTest.java b/YACOSTest/src/org/yacos/tests/core/EvaluationManagerTest.java index 3589019..c32e904 100644 --- a/YACOSTest/src/org/yacos/tests/core/EvaluationManagerTest.java +++ b/YACOSTest/src/org/yacos/tests/core/EvaluationManagerTest.java @@ -144,6 +144,13 @@ public class EvaluationManagerTest { public void removeReportTest(){ Report report = em.addReport(article.getId(), "report a virer", "commentAuthor", new ArrayList(), "evaluationManagerTest"); int reportId = report.getId(); + Criterion c = em.addCriterion("toto", 1, 5, confId); + Rating r = em.addRating(2, c.getId(), reportId); + List listRating = em.getRatingForReport(reportId); + for (Rating r2 : listRating) { + em.removeRating(r2.getCriterion(), r2.getReport()); + } + em.removeReport(report.getId()); assertNull(em.getReport(reportId)); }