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

public Class ShouldHavePropertyOrFieldWithValue

extends BasicErrorMessageFactory
Class Inheritance

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

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

Constructor Summary

AccessConstructor and Description
private
ShouldHavePropertyOrFieldWithValue(Object actual, String name, Object expectedValue, Object actualValue)

Method Summary

Modifier and TypeMethod and Description
public static ErrorMessageFactory

Returns:

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

Creates a new ShouldHavePropertyOrFieldWithValue.

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

Constructor Detail

ShouldHavePropertyOrFieldWithValueback to summary
private ShouldHavePropertyOrFieldWithValue(Object actual, String name, Object expectedValue, Object actualValue)

Method Detail

shouldHavePropertyOrFieldWithValueback to summary
public static ErrorMessageFactory shouldHavePropertyOrFieldWithValue(Object actual, String name, Object expectedValue, Object actualValue)

Creates a new ShouldHavePropertyOrFieldWithValue.

Parameters
actual:Object

the actual value in the failed assertion.

name:String

expected name of the field of this class

expectedValue:Object

expected value of the field of the class

actualValue:Object

actual value of the field of the class

Returns:ErrorMessageFactory

the created ErrorMessageFactory.