Package org.assertj.core.error
Class ShouldNotContainCharSequence
java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.ShouldNotContainCharSequence
- All Implemented Interfaces:
ErrorMessageFactory
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
Modifier and TypeMethodDescriptionstatic ErrorMessageFactoryshouldNotContain(CharSequence actual, CharSequence sequence) static ErrorMessageFactoryshouldNotContain(CharSequence actual, CharSequence[] values, Set<? extends CharSequence> found, ComparisonStrategy comparisonStrategy) Creates a newShouldNotContainCharSequencestatic ErrorMessageFactoryshouldNotContain(CharSequence actual, CharSequence sequence, ComparisonStrategy comparisonStrategy) Creates a new.ShouldNotContainCharSequencestatic ErrorMessageFactoryshouldNotContain(Throwable actual, CharSequence sequence) static ErrorMessageFactoryshouldNotContain(Throwable actual, CharSequence[] sequence, Set<? extends CharSequence> found) static ErrorMessageFactoryshouldNotContainIgnoringCase(CharSequence actual, CharSequence sequence) Creates a new.ShouldContainCharSequencestatic ErrorMessageFactoryshouldNotContainIgnoringCase(CharSequence actual, CharSequence[] sequences, Set<CharSequence> foundSequences) Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
Method Details
-
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 charsequence expected not to be inactual.comparisonStrategy- theComparisonStrategyused to evaluate assertion.- Returns:
- the created
ErrorMessageFactory.
-
shouldNotContain
-
shouldNotContain
-
shouldNotContain
public static ErrorMessageFactory shouldNotContain(Throwable actual, CharSequence[] sequence, Set<? extends CharSequence> found) -
shouldNotContain
public static ErrorMessageFactory shouldNotContain(CharSequence actual, CharSequence[] values, Set<? extends CharSequence> found, ComparisonStrategy comparisonStrategy) Creates a newShouldNotContainCharSequence- Parameters:
actual- the actual value in the failed assertion.values- the charsequences expected not to be inactual.found- the charsequences unexpectedly inactual.comparisonStrategy- theComparisonStrategyused to evaluate assertion.- Returns:
- the created
ErrorMessageFactory.
-
shouldNotContainIgnoringCase
public static ErrorMessageFactory shouldNotContainIgnoringCase(CharSequence actual, CharSequence sequence) Creates a new.ShouldContainCharSequence- Parameters:
actual- the actual value in the failed assertion.sequence- the sequence of values expected to be inactual, ignoring case- Returns:
- the created
ErrorMessageFactory.
-
shouldNotContainIgnoringCase
public static ErrorMessageFactory shouldNotContainIgnoringCase(CharSequence actual, CharSequence[] sequences, Set<CharSequence> foundSequences)
-