Package org.assertj.core.error
Class ShouldBeIn
- java.lang.Object
-
- org.assertj.core.error.BasicErrorMessageFactory
-
- org.assertj.core.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.assertj.core.error.BasicErrorMessageFactory
arguments, format, formatter
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ShouldBeIn(Object actual, Object values, org.assertj.core.internal.ComparisonStrategy comparisonStrategy)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ErrorMessageFactory
shouldBeIn(Object actual, Object values)
Creates a new
.ShouldBeIn
static ErrorMessageFactory
shouldBeIn(Object actual, Object values, org.assertj.core.internal.ComparisonStrategy comparisonStrategy)
Creates a new
.ShouldBeIn
-
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
-
-
-
Method Detail
-
shouldBeIn
public static ErrorMessageFactory shouldBeIn(Object actual, Object values, org.assertj.core.internal.ComparisonStrategy comparisonStrategy)
Creates a new
.ShouldBeIn
- Parameters:
actual
- the actual value in the failed assertion.values
- the group of values whereactual
is expected to be in.comparisonStrategy
- theComparisonStrategy
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 whereactual
is expected to be in.- Returns:
- the created
ErrorMessageFactory
.
-
-