* @param rf
* The factory for the reasoner to test
*/
@Override
public void runTest() {
ValidityReport report = testResults();
switch (expected) {
case INCONSISTENT:
assertTrue("expected inconsistent", !report.isValid());
break;
case WARNINGS:
assertTrue("expected just warnings but reports not valid", report
.isValid());
assertFalse("expected warnings but reports clean", report.isClean());
break;
case CLEAN:
assertTrue("expected clean", report.isClean());
}
if (culprit != null) {
boolean foundit = false;
for (Iterator<Report> i = report.getReports(); i.hasNext();) {
ValidityReport.Report r = i.next();
if (r.getExtension() != null
&& r.getExtension().equals(culprit)) {
foundit = true;
break;