Top Description Fields Constructors Methods
org.assertj.core.error

public Class ShouldHavePropertyOrField

extends BasicErrorMessageFactory
Class Inheritance

Creates an error message indicating that an assertion that verifies that a class has a given field/property.
Author
Libor Ondrusek

Field Summary

Inherited from org.assertj.core.error.BasicErrorMessageFactory:
argumentsformatformatter

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldHavePropertyOrField
(Object
the actual value in the failed assertion.
actual
,
String
expected name of field for this class
name
)

Creates a new ShouldHavePropertyOrField.

Inherited from org.assertj.core.error.BasicErrorMessageFactory:
createcreatecreateequalshashCodetoStringunquotedString

Constructor Detail

ShouldHavePropertyOrFieldback to summary
private ShouldHavePropertyOrField(Object actual, String name)

Method Detail

shouldHavePropertyOrFieldback to summary
public static ErrorMessageFactory shouldHavePropertyOrField(Object actual, String name)

Creates a new ShouldHavePropertyOrField.

Parameters
actual:Object

the actual value in the failed assertion.

name:String

expected name of field for this class

Returns:ErrorMessageFactory

the created ErrorMessageFactory.