public class ShouldMatchPattern extends BasicErrorMessageFactory
String matches a pattern failed.arguments, format| Modifier and Type | Method and Description |
|---|---|
static ErrorMessageFactory |
shouldMatch(String actual,
String pattern)
Creates a new
. |
create, equals, hashCode, toStringpublic static ErrorMessageFactory shouldMatch(String actual, String pattern)
ShouldMatchPattern.actual - the actual value in the failed assertion.pattern - a regular expression pattern.ErrorMessageFactory.Copyright © 2013 AssertJ. All Rights Reserved.