Package org.assertj.core.error
Class ShouldHavePropertyOrFieldWithValue
- java.lang.Object
-
- org.assertj.core.error.BasicErrorMessageFactory
-
- org.assertj.core.error.ShouldHavePropertyOrFieldWithValue
-
- All Implemented Interfaces:
ErrorMessageFactory
public class ShouldHavePropertyOrFieldWithValue extends BasicErrorMessageFactory
Creates an error message indicating that an assertion that verifies that a class has a field/property with a value.
-
-
Field Summary
-
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format, formatter
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ShouldHavePropertyOrFieldWithValue(java.lang.Object actual, java.lang.String name, java.lang.Object expectedValue, java.lang.Object actualValue)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ErrorMessageFactory
shouldHavePropertyOrFieldWithValue(java.lang.Object actual, java.lang.String name, java.lang.Object expectedValue, java.lang.Object actualValue)
Creates a newShouldHavePropertyOrFieldWithValue
.-
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
-
-
-
Method Detail
-
shouldHavePropertyOrFieldWithValue
public static ErrorMessageFactory shouldHavePropertyOrFieldWithValue(java.lang.Object actual, java.lang.String name, java.lang.Object expectedValue, java.lang.Object actualValue)
Creates a newShouldHavePropertyOrFieldWithValue
.- 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
.
-
-