while (assertIter.hasNext ())
{
Assert anAssert = (Assert)assertIter.next ();
// add the next assert to the violations set
Violation v = new Violation();
v.setPath( rule.getContext() );
v.setMessage( anAssert.getMessage() );
violations.add( v );
// System.out.println(" Assert test: " + anAssert.getTest() + ", message: " + anAssert.getMessage() );
}
Iterator reportIter = rule.getReport().iterator();
while (reportIter.hasNext ())
{
Report report = (Report)reportIter.next ();
// add the next report to the violations set
Violation v = new Violation();
v.setPath( rule.getContext() );
v.setMessage( report.getMessage() );
violations.add( v );
// System.out.println(" Report test: " + report.getTest() + ", message: " + report.getMessage() );
}
}
}