org.assertj.core.error
Class ShouldNotContainCharSequence

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

public class ShouldNotContainCharSequence
extends BasicErrorMessageFactory

Creates an error message indicating that an assertion that verifies that a CharSequence does not contain another CharSequence failed.

Author:
Alex Ruiz, Joel Costigliola, Mikhail Mazursky

Field Summary
 
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format
 
Method Summary
static ErrorMessageFactory shouldNotContain(CharSequence actual, CharSequence sequence)
          Creates a new ShouldNotContainCharSequence.
static ErrorMessageFactory shouldNotContain(CharSequence actual, CharSequence sequence, ComparisonStrategy comparisonStrategy)
          Creates a new ShouldNotContainCharSequence.
 
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

shouldNotContain

public static ErrorMessageFactory shouldNotContain(CharSequence actual,
                                                   CharSequence sequence)
Creates a new ShouldNotContainCharSequence.

Parameters:
actual - the actual value in the failed assertion.
sequence - the sequence of values expected not to be in actual.
Returns:
the created ErrorMessageFactory.

shouldNotContain

public static ErrorMessageFactory shouldNotContain(CharSequence actual,
                                                   CharSequence sequence,
                                                   ComparisonStrategy comparisonStrategy)
Creates a new ShouldNotContainCharSequence.

Parameters:
actual - the actual value in the failed assertion.
sequence - the sequence of values expected not to be in actual.
comparisonStrategy - the ComparisonStrategy used to evaluate assertion.
Returns:
the created ErrorMessageFactory.


Copyright © 2013–2015 AssertJ. All rights reserved.