Class JXPathAssertion<M>

  • Type Parameters:
    M - type of data to match
    All Implemented Interfaces:
    Serializable, Comparable<org.apache.commons.lang3.tuple.Pair<String,​org.hamcrest.Matcher<M>>>, Map.Entry<String,​org.hamcrest.Matcher<M>>

    public class JXPathAssertion<M>
    extends Assertion<String,​M>
    Represents an JXPath assertion as a path paired with a Hamcrest matcher.

    NOTE: not designed for serialization

    Author:
    aherscu
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class org.apache.commons.lang3.tuple.MutablePair

        EMPTY_ARRAY, left, right
    • Constructor Summary

      Constructors 
      Constructor Description
      JXPathAssertion​(String jxpath)
      Constructs a JXPath assertion without and expected value.
    • Method Summary

      • Methods inherited from class dev.aherscu.qa.testing.utils.assertions.Assertion

        toString
      • Methods inherited from class org.apache.commons.lang3.tuple.MutablePair

        emptyArray, getLeft, getRight, of, of, ofNonNull, setLeft, setRight, setValue
      • Methods inherited from class org.apache.commons.lang3.tuple.Pair

        accept, apply, compareTo, equals, getKey, getValue, hashCode, toString
    • Constructor Detail

      • JXPathAssertion

        public JXPathAssertion​(String jxpath)
        Constructs a JXPath assertion without and expected value. Use to assert path existence only.
        Parameters:
        jxpath - the JXPath