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