}
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<Violation> it = iri.violations(true);
while (it.hasNext()) {
Violation v = it.next();
if (v.getViolationCode() == violation.getCode()) {
if (v.isError()) {
if (!expectError)