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
shouldBeIn
public static ErrorMessageFactory shouldBeIn(Object actual,
Object values,
org.fest.util.ComparisonStrategy comparisonStrategy)
- Creates a new
ShouldBeIn
.
- Parameters:
actual
- the actual value in the failed assertion.values
- the group of values where actual
is expected to be in.comparisonStrategy
- the ComparisonStrategy
used to evaluate assertion.
- Returns:
- the created
ErrorMessageFactory
.
shouldBeIn
public static ErrorMessageFactory shouldBeIn(Object actual,
Object values)
- Creates a new
ShouldBeIn
.
- Parameters:
actual
- the actual value in the failed assertion.values
- the group of values where actual
is expected to be in.
- Returns:
- the created
ErrorMessageFactory
.
Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.