Package org.fest.assertions.error
Class ShouldBeIn
- java.lang.Object
-
- org.fest.assertions.error.BasicErrorMessageFactory
-
- org.fest.assertions.error.ShouldBeIn
-
- All Implemented Interfaces:
ErrorMessageFactory
public class ShouldBeIn extends BasicErrorMessageFactory
Creates an error message indicating that an assertion that verifies that a value is in a group of values (e.g. an array or collection) failed.- Author:
- Yvonne Wang, Joel Costigliola
-
-
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 ErrorMessageFactoryshouldBeIn(java.lang.Object actual, java.lang.Object values)Creates a new.ShouldBeInstatic ErrorMessageFactoryshouldBeIn(java.lang.Object actual, java.lang.Object values, ComparisonStrategy comparisonStrategy)Creates a new.ShouldBeIn-
Methods inherited from class org.fest.assertions.error.BasicErrorMessageFactory
create, equals, hashCode, toString
-
-
-
-
Method Detail
-
shouldBeIn
public static ErrorMessageFactory shouldBeIn(java.lang.Object actual, java.lang.Object values, ComparisonStrategy comparisonStrategy)
Creates a new.ShouldBeIn- Parameters:
actual- the actual value in the failed assertion.values- the group of values whereactualis expected to be in.comparisonStrategy- theComparisonStrategyused to evaluate assertion.- Returns:
- the created
ErrorMessageFactory.
-
shouldBeIn
public static ErrorMessageFactory shouldBeIn(java.lang.Object actual, java.lang.Object values)
Creates a new.ShouldBeIn- Parameters:
actual- the actual value in the failed assertion.values- the group of values whereactualis expected to be in.- Returns:
- the created
ErrorMessageFactory.
-
-