public class ShouldHavePropertyOrFieldWithValue extends BasicErrorMessageFactory
arguments, format| Modifier and Type | Method and Description |
|---|---|
static ErrorMessageFactory |
shouldHavePropertyOrFieldWithValue(Object actual,
String name,
Object expectedValue,
Object actualValue)
Creates a new
. |
create, create, create, equals, hashCode, toString, unquotedStringpublic static ErrorMessageFactory shouldHavePropertyOrFieldWithValue(Object actual, String name, Object expectedValue, Object actualValue)
ShouldHavePropertyOrFieldWithValue.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 classErrorMessageFactory.Copyright © 2014–2019 AssertJ. All rights reserved.