Top Description Fields Constructors Methods
org.assertj.core.error

public Class ShouldNotContainSequence

extends BasicErrorMessageFactory
Class Inheritance
Imports
org.assertj.core.internal.ComparisonStrategy, .StandardComparisonStrategy

Creates an error message indicating that an assertion that verifies that a group of elements does not contain a sequence of values failed. A group of elements can be a collection, an array or a String.
Author
Chris Arnott

Field Summary

Inherited from org.assertj.core.error.BasicErrorMessageFactory:
argumentsformatformatter

Constructor Summary

AccessConstructor and Description
private
ShouldNotContainSequence(Object actual, Object sequence, int index, ComparisonStrategy comparisonStrategy)

Method Summary

Modifier and TypeMethod and Description
public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldNotContainSequence
(Object
the actual value in the failed assertion.
actual
,
Object
the sequence of values expected to be in actual.
sequence
,
int
the index where the sequence was found in actual.
index
,
ComparisonStrategy
the ComparisonStrategy used to evaluate assertion.
comparisonStrategy
)

Creates a new ShouldNotContainSequence.

public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldNotContainSequence
(Object
the actual value in the failed assertion.
actual
,
Object
the sequence of values expected to be in actual.
sequence
,
int
the index where the sequence was found.
index
)

Creates a new ShouldNotContainSequence.

Inherited from org.assertj.core.error.BasicErrorMessageFactory:
createcreatecreateequalshashCodetoStringunquotedString

Constructor Detail

ShouldNotContainSequenceback to summary
private ShouldNotContainSequence(Object actual, Object sequence, int index, ComparisonStrategy comparisonStrategy)

Method Detail

shouldNotContainSequenceback to summary
public static ErrorMessageFactory shouldNotContainSequence(Object actual, Object sequence, int index, ComparisonStrategy comparisonStrategy)

Creates a new ShouldNotContainSequence.

Parameters
actual:Object

the actual value in the failed assertion.

sequence:Object

the sequence of values expected to be in actual.

index:int

the index where the sequence was found in actual.

comparisonStrategy:ComparisonStrategy

the ComparisonStrategy used to evaluate assertion.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.

shouldNotContainSequenceback to summary
public static ErrorMessageFactory shouldNotContainSequence(Object actual, Object sequence, int index)

Creates a new ShouldNotContainSequence.

Parameters
actual:Object

the actual value in the failed assertion.

sequence:Object

the sequence of values expected to be in actual.

index:int

the index where the sequence was found.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.