}
}
private void logUnexpectedConstraint(ValidationConstraint constraint, String errorLevel, int problemOccurance) {
if (constraint instanceof OdfPackageConstraint) {
OdfPackageConstraint pkgConstraint = (OdfPackageConstraint) constraint;
Assert.fail(problemOccurance + "x time(s) in " + getTestFilePath() + " a new ODF 1.2 Package " + errorLevel + " '" + pkgConstraint.name() + "' was unexpected thrown!");
} else {
OdfSchemaConstraint schemaConstraint = (OdfSchemaConstraint) constraint;
Assert.fail(problemOccurance + "x time(s) in " + getTestFilePath() + " a new ODF 1.2 Schema " + errorLevel + " '" + schemaConstraint.name() + "' was unexpected thrown!");
}
}