From 20bf86040e1411f52595e5a2f91b102fde1f7615 Mon Sep 17 00:00:00 2001 From: Frederic Debuire Date: Mon, 25 Feb 2008 16:53:44 +0000 Subject: [PATCH] Test.. --- .../src/org/yacos/tests/core/EvaluationManagerTest.java | 7 +++++++ 1 file changed, 7 insertions(+) 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)); }