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 an Iterable
is
a subset of an other set Iterable
failed.
- Author:
- Maciej Jaskowski
shouldBeSubsetOf
public static ErrorMessageFactory shouldBeSubsetOf(Object actual,
Object values,
Iterable<?> unexpected,
org.fest.util.ComparisonStrategy comparisonStrategy)
- Creates a new
ShouldBeSubsetOf
- Parameters:
actual
- the actual setvalues
- the expected supersetcomparisonStrategy
- the ComparisonStrategy
used
- 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 superset
- Returns:
- the created
ErrorMessageFactory
.
Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.