Class MatcherShouldMatch

java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.MatcherShouldMatch
All Implemented Interfaces:
ErrorMessageFactory

public class MatcherShouldMatch extends BasicErrorMessageFactory
Build error message when an Matcher should match.
Author:
Jiashu Zhang
  • Method Details

    • shouldMatch

      public static MatcherShouldMatch shouldMatch(Matcher matcher)
      Indicates that the provided Matcher should match.
      Parameters:
      matcher - the actual Matcher to test.
      Returns:
      an error message factory.