Class XMLUnitSupport

java.lang.Object
org.codice.ddf.test.common.xmlunit.XMLUnitSupport

public class XMLUnitSupport extends Object
This class provides additional support when testing along with XMLUnit 2.0 matchers.
  • Method Details

    • adapt

      public static <T> org.xmlunit.util.Predicate<T> adapt(Predicate<T> predicate)
      Adapts a Java 8 predicate to an XMLUnit predicate one.
      Type Parameters:
      T - the type of the input to the predicate
      Parameters:
      predicate - the predicate to adapt
      Returns:
      a corresponding XMLUnit predicate