org.assertj.core.error
Class ShouldNotContainCharSequence
java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
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
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.