Top Description Fields Constructors Methods
org.assertj.core.error

public Class ShouldMatchPattern

extends BasicErrorMessageFactory
Class Inheritance

Creates an error message indicating that an assertion that verifies that a CharSequence matches a pattern failed.
Authors
Alex Ruiz, Mikhail Mazursky

Field Summary

Inherited from org.assertj.core.error.BasicErrorMessageFactory:
argumentsformatformatter

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldMatch
(CharSequence
the actual value in the failed assertion.
actual
,
CharSequence
a regular expression pattern.
pattern
)

Creates a new ShouldMatchPattern.

Inherited from org.assertj.core.error.BasicErrorMessageFactory:
createcreatecreateequalshashCodetoStringunquotedString

Constructor Detail

ShouldMatchPatternback to summary
private ShouldMatchPattern(CharSequence actual, CharSequence pattern)

Method Detail

shouldMatchback to summary
public static ErrorMessageFactory shouldMatch(CharSequence actual, CharSequence pattern)

Creates a new ShouldMatchPattern.

Parameters
actual:CharSequence

the actual value in the failed assertion.

pattern:CharSequence

a regular expression pattern.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.