Package org.assertj.core.error
Class ShouldNotBeIn
java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.ShouldNotBeIn
- All Implemented Interfaces:
ErrorMessageFactory
Creates an error message indicating that an assertion that verifies that a value is not 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 -
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorMessageFactoryshouldNotBeIn(Object actual, Object values) Creates a new.ShouldNotBeInstatic ErrorMessageFactoryshouldNotBeIn(Object actual, Object values, ComparisonStrategy comparisonStrategy) Creates a new.ShouldNotBeInMethods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
Method Details
-
shouldNotBeIn
public static ErrorMessageFactory shouldNotBeIn(Object actual, Object values, ComparisonStrategy comparisonStrategy) Creates a new.ShouldNotBeIn- 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.
-
shouldNotBeIn
Creates a new.ShouldNotBeIn- Parameters:
actual- the actual value in the failed assertion.values- the group of values whereactualis expected to be in.- Returns:
- the created
ErrorMessageFactory.
-