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