Class | Description |
---|---|
HmRqBody |
Request Body Matcher.
|
HmRqHeader |
Request Header Matcher.
|
HmRsBody |
Response Body Matcher.
|
HmRsHeader |
Response Header Matcher.
|
HmRsStatus |
Response Status Matcher.
|
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)) ); } }
Copyright © 2015–2018 Take. All rights reserved.