Class JXPathAssertion<M>
- java.lang.Object
-
- org.apache.commons.lang3.tuple.Pair<L,R>
-
- org.apache.commons.lang3.tuple.MutablePair<E,org.hamcrest.Matcher<M>>
-
- dev.aherscu.qa.testing.utils.assertions.Assertion<String,M>
-
- dev.aherscu.qa.testing.utils.assertions.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
-
-
Constructor Summary
Constructors Constructor Description JXPathAssertion(String jxpath)
Constructs a JXPath assertion without and expected value.
-
Method Summary
-
Methods inherited from class org.apache.commons.lang3.tuple.MutablePair
emptyArray, getLeft, getRight, of, of, ofNonNull, setLeft, setRight, setValue
-
-
-
-
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
-
-