Skip to content

Instantly share code, notes, and snippets.

View javiergomezz's full-sized avatar

Javier Gómez javiergomezz

  • Maieutics Ltd.
  • London
View GitHub Profile
@Christopher-Barham-AKQA
Christopher-Barham-AKQA / AppTest.java
Created August 28, 2012 09:36
Example jUnit test that demos/uses most of the hamcrest matchers
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.allOf;
import static org.hamcrest.Matchers.any;
import static org.hamcrest.Matchers.anyOf;
import static org.hamcrest.Matchers.anything;
import static org.hamcrest.Matchers.describedAs;
import static org.hamcrest.Matchers.endsWith;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.equalToIgnoringWhiteSpace;
import static org.hamcrest.Matchers.instanceOf;