public class ShouldMatchPattern extends BasicErrorMessageFactory
String matches a pattern failed.arguments, format| Modifier and Type | Method and Description |
|---|---|
static ErrorMessageFactory |
shouldMatch(java.lang.String actual,
java.lang.String pattern)
Creates a new
. |
create, equals, hashCode, toStringpublic static ErrorMessageFactory shouldMatch(java.lang.String actual, java.lang.String pattern)
ShouldMatchPattern.actual - the actual value in the failed assertion.pattern - a regular expression pattern.ErrorMessageFactory.Copyright © 2007–2018. All rights reserved.