Skip to content

v1.2.0

Compare
Choose a tag to compare
@apenski apenski released this 24 Mar 08:51

Added

  • Provide access to schematron results through Result.java
    • Result#getFailedAsserts() returns a list of failed asserts found by schematron
    • Result#isSchematronValid() convinience access to evaluate whether schematron was processed without any FailedAsserts

Changed

  • Result#getAcceptRecommendation() does not only work when acceptMatch is configured in the scenario
    • schema correctness is a precondition, if the checked instance is not valid, this evaluates to REJECTED
    • if acceptMatch is configured, the result is based on the boolean result of the xpath expression evaluated against the generated report
    • if no acceptMatch is configured, the result is based on evaluation of schema and schematron correctness
    • UNDEFINED is only returned, when processing is stopped somehow
  • Result#isAcceptable() can now evaluate to true, when no acceptMatch is configured (see above)