{
public void testCheckCyclicLink()
{
ReviewManager reviewManager = new ReviewManager(getProject());
Review review1 = new Review("review1");
Review review2 = new Review("review2");
Review review3 = new Review("review3");
try
{
reviewManager.checkCyclicLink(review1, review1);
}
catch (RevuException e)
{
Assert.fail(e.getMessage());
}
review2.setExtendedReview(review1);
try
{
reviewManager.checkCyclicLink(review1, review2);
}
catch (RevuException e)
{
Assert.fail(e.getMessage());
}
review2.setExtendedReview(review3);
review3.setExtendedReview(review1);
try
{
reviewManager.checkCyclicLink(review1, review2);
}
catch (RevuException e)