Package org.fest.assertions.error
Class ShouldBeSubsetOf
- java.lang.Object
-
- org.fest.assertions.error.BasicErrorMessageFactory
-
- org.fest.assertions.error.ShouldBeSubsetOf
-
- All Implemented Interfaces:
ErrorMessageFactory
public class ShouldBeSubsetOf extends BasicErrorMessageFactory
Creates an error message indicating that an assertion that verifies that anIterable
is a subset of an other setIterable
failed.- Author:
- Maciej Jaskowski
-
-
Field Summary
-
Fields inherited from class org.fest.assertions.error.BasicErrorMessageFactory
arguments, format
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ErrorMessageFactory
shouldBeSubsetOf(java.lang.Object actual, java.lang.Object values, java.lang.Iterable<?> unexpected)
Creates a new
.ShouldBeSubsetOf
static ErrorMessageFactory
shouldBeSubsetOf(java.lang.Object actual, java.lang.Object values, java.lang.Iterable<?> unexpected, ComparisonStrategy comparisonStrategy)
Creates a newShouldBeSubsetOf
-
Methods inherited from class org.fest.assertions.error.BasicErrorMessageFactory
create, equals, hashCode, toString
-
-
-
-
Method Detail
-
shouldBeSubsetOf
public static ErrorMessageFactory shouldBeSubsetOf(java.lang.Object actual, java.lang.Object values, java.lang.Iterable<?> unexpected, ComparisonStrategy comparisonStrategy)
Creates a newShouldBeSubsetOf
- Parameters:
actual
- the actual setvalues
- the expected supersetcomparisonStrategy
- the
usedComparisonStrategy
- Returns:
- the created
ErrorMessageFactory
-
shouldBeSubsetOf
public static ErrorMessageFactory shouldBeSubsetOf(java.lang.Object actual, java.lang.Object values, java.lang.Iterable<?> unexpected)
Creates a new
.ShouldBeSubsetOf
- Parameters:
actual
- the actual setvalues
- the expected superset- Returns:
- the created
ErrorMessageFactory
.
-
-