Package org.assertj.core.error
Class ShouldNotContainPattern
java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.ShouldNotContainPattern
- All Implemented Interfaces:
ErrorMessageFactory
Creates an error message indicating that an assertion that verifies that a
CharSequence does not contain
a regular expression failed.-
Field Summary
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format -
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorMessageFactoryshouldNotContainPattern(CharSequence actual, CharSequence pattern) Creates a new.ShouldNotContainPatternMethods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
Method Details
-
shouldNotContainPattern
public static ErrorMessageFactory shouldNotContainPattern(CharSequence actual, CharSequence pattern) Creates a new.ShouldNotContainPattern- Parameters:
actual- the actual value in the failed assertion.pattern- a regular expression pattern.- Returns:
- the created
ErrorMessageFactory.
-