Package org.assertj.core.error
Class ShouldHavePropertyOrField
- java.lang.Object
-
- org.assertj.core.error.BasicErrorMessageFactory
-
- org.assertj.core.error.ShouldHavePropertyOrField
-
- All Implemented Interfaces:
ErrorMessageFactory
public class ShouldHavePropertyOrField extends BasicErrorMessageFactory
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, formatter
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ShouldHavePropertyOrField(Object actual, String name)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
shouldHavePropertyOrField
public static ErrorMessageFactory shouldHavePropertyOrField(Object actual, String name)
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
.
-
-