Package org.assertj.core.error
Class ShouldHavePropertyOrFieldWithValue
java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.ShouldHavePropertyOrFieldWithValue
- All Implemented Interfaces:
ErrorMessageFactory
Creates an error message indicating that an assertion that verifies that a class has a field/property with a value.
- Author:
- Libor Ondrusek
-
Field Summary
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format -
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorMessageFactoryshouldHavePropertyOrFieldWithValue(Object actual, String name, Object expectedValue, Object actualValue) Creates a new.ShouldHavePropertyOrFieldWithValueMethods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
Method Details
-
shouldHavePropertyOrFieldWithValue
public static ErrorMessageFactory shouldHavePropertyOrFieldWithValue(Object actual, String name, Object expectedValue, Object actualValue) Creates a new.ShouldHavePropertyOrFieldWithValue- Parameters:
actual- the actual value in the failed assertion.name- expected name of the field of this classexpectedValue- expected value of the field of the classactualValue- actual value of the field of the class- Returns:
- the created
ErrorMessageFactory.
-