Class ElementsShouldSatisfy

java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.xmlunit.assertj3.error.ElementsShouldSatisfy
All Implemented Interfaces:
org.assertj.core.error.ErrorMessageFactory

public class ElementsShouldSatisfy extends org.assertj.core.error.BasicErrorMessageFactory
Copied subset of ElementsShouldSatisfy as AssertJ has moved the nested UnsatisfiedRequirement class to a top level class, breaking backwards compatibility.
Since:
XMLUnit 2.8.3
  • Constructor Details

  • Method Details

    • elementsShouldSatisfy

      public static org.assertj.core.error.ErrorMessageFactory elementsShouldSatisfy(Object actual, List<ElementsShouldSatisfy.UnsatisfiedRequirement> elementsNotSatisfyingRestrictions, org.assertj.core.api.AssertionInfo info)
      Creates ErrorMessageFactory.
      Parameters:
      actual - the actual value
      elementsNotSatisfyingRestrictions - elements that don't satisfy assertion
      info - assertion information
      Returns:
      ErrorMessageFactory
    • describeErrors

      private static String describeErrors(List<ElementsShouldSatisfy.UnsatisfiedRequirement> elementsNotSatisfyingRequirements, org.assertj.core.api.AssertionInfo info)
    • escapePercent

      private static String escapePercent(String s)