Package org.assertj.core.error
Class ShouldContainValue
- java.lang.Object
-
- org.assertj.core.error.BasicErrorMessageFactory
-
- org.assertj.core.error.ShouldContainValue
-
- All Implemented Interfaces:
ErrorMessageFactory
public class ShouldContainValue extends BasicErrorMessageFactory
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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ErrorMessageFactory
shouldContainValue(Object actual, Object value)
Creates a newShouldContainValue
.static ErrorMessageFactory
shouldContainValue(Object actual, Condition<?> valueCondition)
Creates a newShouldContainValue
.-
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
-
-
-
Method Detail
-
shouldContainValue
public static ErrorMessageFactory shouldContainValue(Object actual, Object value)
Creates a newShouldContainValue
.- Parameters:
actual
- the actual value in the failed assertion.- Returns:
- the created
ErrorMessageFactory
.
-
shouldContainValue
public static ErrorMessageFactory shouldContainValue(Object actual, Condition<?> valueCondition)
Creates a newShouldContainValue
.- Parameters:
actual
- the actual map in the failed assertion.valueCondition
- value condition.- Returns:
- the created
ErrorMessageFactory
.
-
-