@ GwtIncompatible ( "java.util.regex.Pattern" ) public void doesNotContainMatch ( Pattern regex ) { Matcher matcher = regex . matcher ( actual ( ) ) ; if ( matcher . find ( ) ) { failWithoutActual ( fact ( "expected not to contain a match for" , regex ) , fact ( "but contained" , matcher . group ( ) ) , fact ( "full string" , actualCustomStringRepresentationForPackageMembersToCall ( ) ) ) ; } }
Fails if the string contains a match on the given regex .