org.assertj.core.error
Class ShouldNotMatchPattern

java.lang.Object
  extended by org.assertj.core.error.BasicErrorMessageFactory
      extended by org.assertj.core.error.ShouldNotMatchPattern
All Implemented Interfaces:
ErrorMessageFactory

public class ShouldNotMatchPattern
extends BasicErrorMessageFactory

Creates an error message indicating that an assertion that verifies that a CharSequence does not match a pattern failed.

Author:
Alex Ruiz, Mikhail Mazursky

Field Summary
 
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format
 
Method Summary
static ErrorMessageFactory shouldNotMatch(CharSequence actual, CharSequence pattern)
          Creates a new ShouldStartWith.
 
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, equals, hashCode, toString, unquotedString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

shouldNotMatch

public static ErrorMessageFactory shouldNotMatch(CharSequence actual,
                                                 CharSequence pattern)
Creates a new ShouldStartWith.

Parameters:
actual - the actual value in the failed assertion.
pattern - a regular expression pattern.
Returns:
the created ErrorMessageFactory.


Copyright © 2013–2015 AssertJ. All rights reserved.