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