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.
-
Field Summary
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format, formatter
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ShouldContainValue
(Object actual, Object value) private
ShouldContainValue
(Object actual, Condition<?> valueCondition) -
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
-
Constructor Details
-
ShouldContainValue
-
ShouldContainValue
-
-
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
.
-