}
private void runTest(IRIFactory f, boolean expectError,
boolean expectWarning, String desc) {
IRI iri = f.create(uri);
boolean implemented = violation.isImplemented();
expectError = expectError && implemented;
expectWarning = expectWarning && (!expectError) && implemented;
if (good) {
expectError = expectWarning = false;
}
boolean hasError = false;
boolean hasWarning = false;
Iterator it = iri.violations(true);
while (it.hasNext()) {
Violation v = (Violation) it.next();
if (v.getViolationCode() == violation.getCode()) {
if (v.isError()) {
if (!expectError)