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

public Class ShouldNotBeIn

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

Creates an error message indicating that an assertion that verifies that a value is not in a group of values (e.g. an array or collection) failed.
Authors
Yvonne Wang, Joel Costigliola

Field Summary

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

Constructor Summary

AccessConstructor and Description
private
ShouldNotBeIn(Object actual, Object values, ComparisonStrategy comparisonStrategy)

Method Summary

Modifier and TypeMethod and Description
public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldNotBeIn
(Object
the actual value in the failed assertion.
actual
,
Object
the group of values where actual is expected to be in.
values
,
ComparisonStrategy
the ComparisonStrategy used to evaluate assertion.
comparisonStrategy
)

Creates a new ShouldNotBeIn.

public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldNotBeIn
(Object
the actual value in the failed assertion.
actual
,
Object
the group of values where actual is expected to be in.
values
)

Creates a new ShouldNotBeIn.

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

Constructor Detail

ShouldNotBeInback to summary
private ShouldNotBeIn(Object actual, Object values, ComparisonStrategy comparisonStrategy)

Method Detail

shouldNotBeInback to summary
public static ErrorMessageFactory shouldNotBeIn(Object actual, Object values, ComparisonStrategy comparisonStrategy)

Creates a new ShouldNotBeIn.

Parameters
actual:Object

the actual value in the failed assertion.

values:Object

the group of values where actual is expected to be in.

comparisonStrategy:ComparisonStrategy

the ComparisonStrategy used to evaluate assertion.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.

shouldNotBeInback to summary
public static ErrorMessageFactory shouldNotBeIn(Object actual, Object values)

Creates a new ShouldNotBeIn.

Parameters
actual:Object

the actual value in the failed assertion.

values:Object

the group of values where actual is expected to be in.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.