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

public Class ShouldContainExactlyInAnyOrder

extends BasicErrorMessageFactory
Class Inheritance
Static Imports
org.assertj.core.error.ShouldContainExactlyInAnyOrder.ErrorType.NOT_EXPECTED_ONLY, .ShouldContainExactlyInAnyOrder.ErrorType.NOT_FOUND_ONLY, org.assertj.core.util.IterableUtil.isNullOrEmpty

Creates an error message indicating that an assertion that verifies a group of elements contains exactly a given set of values and nothing else failed. A group of elements can be a collection, an array or a String.
Author
Lovro Pandzic

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum

Field Summary

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

Constructor Summary

AccessConstructor and Description
private
ShouldContainExactlyInAnyOrder(Object actual, Object expected, Iterable<?> notFound, Iterable<?> notExpected, ComparisonStrategy comparisonStrategy)

private
ShouldContainExactlyInAnyOrder(Object actual, Object expected, Iterable<?> notFoundOrNotExpected, ShouldContainExactlyInAnyOrder.ErrorType errorType, ComparisonStrategy comparisonStrategy)

Method Summary

Modifier and TypeMethod and Description
public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldContainExactlyInAnyOrder
(Object
the actual value in the failed assertion.
actual
,
Object
values expected to be contained in actual.
expected
,
Iterable<?>
values in expected not found in actual.
notFound
,
Iterable<?>
values in actual that were not in expected.
notExpected
,
ComparisonStrategy
the ComparisonStrategy used to evaluate assertion.
comparisonStrategy
)

Creates a new ShouldContainExactlyInAnyOrder.

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

Constructor Detail

ShouldContainExactlyInAnyOrderback to summary
private ShouldContainExactlyInAnyOrder(Object actual, Object expected, Iterable<?> notFound, Iterable<?> notExpected, ComparisonStrategy comparisonStrategy)
ShouldContainExactlyInAnyOrderback to summary
private ShouldContainExactlyInAnyOrder(Object actual, Object expected, Iterable<?> notFoundOrNotExpected, ShouldContainExactlyInAnyOrder.ErrorType errorType, ComparisonStrategy comparisonStrategy)

Method Detail

shouldContainExactlyInAnyOrderback to summary
public static ErrorMessageFactory shouldContainExactlyInAnyOrder(Object actual, Object expected, Iterable<?> notFound, Iterable<?> notExpected, ComparisonStrategy comparisonStrategy)

Creates a new ShouldContainExactlyInAnyOrder.

Parameters
actual:Object

the actual value in the failed assertion.

expected:Object

values expected to be contained in actual.

notFound:Iterable<?>

values in expected not found in actual.

notExpected:Iterable<?>

values in actual that were not in expected.

comparisonStrategy:ComparisonStrategy

the ComparisonStrategy used to evaluate assertion.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.

org.assertj.core.error back to summary

public final Enum ShouldContainExactlyInAnyOrder.ErrorType

extends Enum<ShouldContainExactlyInAnyOrder.ErrorType>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final ShouldContainExactlyInAnyOrder.ErrorType
public static final ShouldContainExactlyInAnyOrder.ErrorType

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static ShouldContainExactlyInAnyOrder.ErrorType
public static ShouldContainExactlyInAnyOrder.ErrorType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

NOT_EXPECTED_ONLYback to summary
public static final ShouldContainExactlyInAnyOrder.ErrorType NOT_EXPECTED_ONLY
NOT_FOUND_ONLYback to summary
public static final ShouldContainExactlyInAnyOrder.ErrorType NOT_FOUND_ONLY

Constructor Detail

ErrorTypeback to summary
private ErrorType()

Method Detail

valueOfback to summary
public static ShouldContainExactlyInAnyOrder.ErrorType valueOf(String name)
valuesback to summary
public static ShouldContainExactlyInAnyOrder.ErrorType[] values()