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 ErrorMessageFactoryshouldContainValue(Object actual, Object value) Creates a new.ShouldContainValuestatic ErrorMessageFactoryshouldContainValue(Object actual, Condition<?> valueCondition) Creates a new.ShouldContainValueMethods 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.
-