Package org.takes.facets.hamcrest
Matchers.
This package contains Hamcrest matchers for all key interfaces in the framework. Use them as in this example:
public class FooTest { @Test public void returnsOK() { final Response response = new TkIndex().act(new RqFake()); MatcherAssert.assertThat( response, new HmStatus(Matchers.equalTo(HttpURLConnection.HTTP_OK)) ); } }
- Since:
- 0.13
-
Class Summary Class Description AbstractHmTextBody<T> Text body matcher.HmBody<T extends Body> Body Matcher.HmHeader<T extends Head> Header Matcher.HmRqTextBody Request text body matcher.HmRsStatus Response Status Matcher.HmRsTextBody Response text body matcher.