com.jcabi:jcabi-matchers

Hamcrest Matchers


Keywords
hamcrest, hamcrest-matchers, java
License
BSD-3-Clause

Documentation

Managed by Zerocracy DevOps By Rultor.com

Build Status PDD status Build status Javadoc

jpeek report Maven Central Dependencies

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