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.- Author:
- Libor Ondrusek
-
-
Field Summary
-
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format, formatter
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ShouldHavePropertyOrFieldWithValue(Object actual, String name, Object expectedValue, Object actualValue)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ErrorMessageFactory
shouldHavePropertyOrFieldWithValue(Object actual, String name, Object expectedValue, Object actualValue)
Creates a new
.ShouldHavePropertyOrFieldWithValue
-
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
-
-
-
Method Detail
-
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
.
-
-