Package org.assertj.core.error
Class ShouldContainValue
java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.ShouldContainValue
- All Implemented Interfaces:
ErrorMessageFactory
Creates an error message indicating that an assertion that verifies a map contains a value.
- Author:
- Nicolas François
-
Field Summary
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format
-
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorMessageFactory
shouldContainValue
(Object actual, Object value) Creates a new
.ShouldContainValue
static ErrorMessageFactory
shouldContainValue
(Object actual, Condition<?> valueCondition) Creates a new
.ShouldContainValue
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
Method Details
-
shouldContainValue
Creates a new
.ShouldContainValue
- Parameters:
actual
- the actual value in the failed assertion.value
- the value not found- Returns:
- the created
ErrorMessageFactory
.
-
shouldContainValue
Creates a new
.ShouldContainValue
- Parameters:
actual
- the actual map in the failed assertion.valueCondition
- value condition.- Returns:
- the created
ErrorMessageFactory
.
-