Package org.takes.facets.hamcrest

Matchers.

See: Description

Package org.takes.facets.hamcrest Description

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
Version:
$Id: 88ac51d3f980e72c8aa81324327a6c6296a88fba $
Author:
Erim Erturk ([email protected])

Copyright © 2015 Take. All rights reserved.