More details are here: matchers.jcabi.com. Also, read this blog post: XML/XPath Matchers for Hamcrest.
The library contains a collection of convenient Hamcrest matchers. For example:
import com.jcabi.matchers.XhtmlMatchers;
import org.hamcrest.MatcherAssert;
MatcherAssert.assertThat(
"<test><name>Jeff</name></test>",
XhtmlMatchers.hasXPath("/test/name[.='Jeff']");
);
Questions?
If you have any questions about the framework, or something doesn't work as expected, please submit an issue here.
How to contribute?
Fork the repository, make changes, submit a pull request. We promise to review your changes same day and apply to the master
branch, if they look correct.
Please run Maven build before submitting a pull request:
$ mvn clean install -Pqulice