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

public Class ShouldNotContainAtIndex

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

Creates an error message indicating that an assertion that verifies a group of elements does not contain a value at a given index failed. A group of elements can be a collection, an array or a String.
It also mention the ComparisonStrategy if the default one is not used.
Authors
Alex Ruiz, Joel Costigliola

Field Summary

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

Constructor Summary

AccessConstructor and Description
private
ShouldNotContainAtIndex(Object actual, Object expected, Index index, ComparisonStrategy comparisonStrategy)

Method Summary

Modifier and TypeMethod and Description
public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldNotContainAtIndex
(Object
the actual value in the failed assertion.
actual
,
Object
value expected to be in actual.
expected
,
Index
the index of the expected value.
index
,
ComparisonStrategy
the ComparisonStrategy used to evaluate assertion.
comparisonStrategy
)

Creates a new ShouldNotContainAtIndex.

public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldNotContainAtIndex
(Object
the actual value in the failed assertion.
actual
,
Object
value expected to be in actual.
expected
,
Index
the index of the expected value.
index
)

Creates a new ShouldNotContainAtIndex.

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

Constructor Detail

ShouldNotContainAtIndexback to summary
private ShouldNotContainAtIndex(Object actual, Object expected, Index index, ComparisonStrategy comparisonStrategy)

Method Detail

shouldNotContainAtIndexback to summary
public static ErrorMessageFactory shouldNotContainAtIndex(Object actual, Object expected, Index index, ComparisonStrategy comparisonStrategy)

Creates a new ShouldNotContainAtIndex.

Parameters
actual:Object

the actual value in the failed assertion.

expected:Object

value expected to be in actual.

index:Index

the index of the expected value.

comparisonStrategy:ComparisonStrategy

the ComparisonStrategy used to evaluate assertion.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.

shouldNotContainAtIndexback to summary
public static ErrorMessageFactory shouldNotContainAtIndex(Object actual, Object expected, Index index)

Creates a new ShouldNotContainAtIndex.

Parameters
actual:Object

the actual value in the failed assertion.

expected:Object

value expected to be in actual.

index:Index

the index of the expected value.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.