Class JXPathAsserterImpl
- java.lang.Object
-
- dev.aherscu.qa.testing.utils.assertions.JXPathAsserterImpl
-
- All Implemented Interfaces:
JXPathAsserter
public class JXPathAsserterImpl extends Object implements JXPathAsserter
Supports asserting on multiple JXPaths.- Author:
- Adrian Herscu
-
-
Constructor Summary
Constructors Constructor Description JXPathAsserterImpl(Object object)
Instantiates a new JXPathAsserter
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JXPathAsserter
assertHas(JXPathAssertion<?>... expectedContents)
Asserts that expected contents match.JXPathAsserter
assertHas(Iterable<? extends JXPathAssertion<?>> expectedContents)
Asserts that expected contents match.
-
-
-
Constructor Detail
-
JXPathAsserterImpl
public JXPathAsserterImpl(Object object)
Instantiates a new JXPathAsserter- Parameters:
object
- the object to work on
-
-
Method Detail
-
assertHas
public JXPathAsserter assertHas(Iterable<? extends JXPathAssertion<?>> expectedContents)
Description copied from interface:JXPathAsserter
Asserts that expected contents match.- Specified by:
assertHas
in interfaceJXPathAsserter
- Parameters:
expectedContents
- the expected contents- Returns:
- this to allow fluent assertion chains
-
assertHas
public JXPathAsserter assertHas(JXPathAssertion<?>... expectedContents)
Description copied from interface:JXPathAsserter
Asserts that expected contents match.- Specified by:
assertHas
in interfaceJXPathAsserter
- Parameters:
expectedContents
- the expected contents- Returns:
- this to allow fluent assertion chains
-
-