Matches pattern - http://hamcrest.org/JavaHamcrest/javadoc/2.0.0.0/org/hamcrest/text/MatchesPattern.html.
assertThat("FooBarBaz", matchesPattern("^Foo"));
Last updated 4 years ago