Package org.assertj.core.error
Class ShouldBeSubsetOf
- java.lang.Object
-
- org.assertj.core.error.BasicErrorMessageFactory
-
- org.assertj.core.error.ShouldBeSubsetOf
-
- All Implemented Interfaces:
ErrorMessageFactory
public class ShouldBeSubsetOf extends BasicErrorMessageFactory
Creates an error message indicating that an assertion that verifies that anIterableis a subset of an other setIterablefailed.- Author:
- Maciej Jaskowski
-
-
Field Summary
-
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format, formatter
-
-
Constructor Summary
Constructors Modifier Constructor Description privateShouldBeSubsetOf(Object actual, Object values, Iterable<?> unexpected, ComparisonStrategy comparisonStrategy)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ErrorMessageFactoryshouldBeSubsetOf(Object actual, Object values, Iterable<?> unexpected)Creates a new.ShouldBeSubsetOfstatic ErrorMessageFactoryshouldBeSubsetOf(Object actual, Object values, Iterable<?> unexpected, ComparisonStrategy comparisonStrategy)Creates a newShouldBeSubsetOf-
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
-
-
-
Constructor Detail
-
ShouldBeSubsetOf
private ShouldBeSubsetOf(Object actual, Object values, Iterable<?> unexpected, ComparisonStrategy comparisonStrategy)
-
-
Method Detail
-
shouldBeSubsetOf
public static ErrorMessageFactory shouldBeSubsetOf(Object actual, Object values, Iterable<?> unexpected, ComparisonStrategy comparisonStrategy)
Creates a newShouldBeSubsetOf- Parameters:
actual- the actual setvalues- the expected supersetunexpected- the unexpected valuecomparisonStrategy- theusedComparisonStrategy- Returns:
- the created
ErrorMessageFactory
-
shouldBeSubsetOf
public static ErrorMessageFactory shouldBeSubsetOf(Object actual, Object values, Iterable<?> unexpected)
Creates a new.ShouldBeSubsetOf- Parameters:
actual- the actual setvalues- the expected supersetunexpected- the unexpected value- Returns:
- the created
ErrorMessageFactory.
-
-