public class ShouldContainPattern extends BasicErrorMessageFactory
CharSequence
contains a pattern failed.arguments, format
Modifier and Type | Method and Description |
---|---|
static ErrorMessageFactory |
shouldContainPattern(CharSequence actual,
CharSequence pattern)
Creates a new
. |
create, create, create, equals, hashCode, toString, unquotedString
public static ErrorMessageFactory shouldContainPattern(CharSequence actual, CharSequence pattern)
ShouldContainPattern
.actual
- the actual value in the failed assertion.pattern
- a regular expression pattern.ErrorMessageFactory
.Copyright © 2014–2019 AssertJ. All rights reserved.