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

public Class ShouldBeSubsetOf

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

Creates an error message indicating that an assertion that verifies that an Iterable is a subset of an other set Iterable failed.
Author
Maciej Jaskowski

Field Summary

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

Constructor Summary

AccessConstructor and Description
private
ShouldBeSubsetOf(Object actual, Object values, Iterable<?> unexpected, ComparisonStrategy comparisonStrategy)

Method Summary

Modifier and TypeMethod and Description
public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory
shouldBeSubsetOf
(Object
the actual set
actual
,
Object
the expected superset
values
,
Iterable<?>
the unexpected value
unexpected
,
ComparisonStrategy comparisonStrategy)

Creates a new ShouldBeSubsetOf

public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldBeSubsetOf
(Object
the actual set
actual
,
Object
the expected superset
values
,
Iterable<?>
the unexpected value
unexpected
)

Creates a new ShouldBeSubsetOf.

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

Constructor Detail

ShouldBeSubsetOfback to summary
private ShouldBeSubsetOf(Object actual, Object values, Iterable<?> unexpected, ComparisonStrategy comparisonStrategy)

Method Detail

shouldBeSubsetOfback to summary
public static ErrorMessageFactory shouldBeSubsetOf(Object actual, Object values, Iterable<?> unexpected, ComparisonStrategy comparisonStrategy)

Creates a new ShouldBeSubsetOf

Parameters
actual:Object

the actual set

values:Object

the expected superset

unexpected:Iterable<?>

the unexpected value

comparisonStrategy:ComparisonStrategy

the ComparisonStrategy used

Returns:ErrorMessageFactory

the created ErrorMessageFactory

shouldBeSubsetOfback to summary
public static ErrorMessageFactory shouldBeSubsetOf(Object actual, Object values, Iterable<?> unexpected)

Creates a new ShouldBeSubsetOf.

Parameters
actual:Object

the actual set

values:Object

the expected superset

unexpected:Iterable<?>

the unexpected value

Returns:ErrorMessageFactory

the created ErrorMessageFactory.