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
ShouldHavePropertyOrFieldWithValue . |
create, create, create, equals, hashCode, toString, unquotedString
public static ErrorMessageFactory shouldHavePropertyOrFieldWithValue(Object actual, String name, Object expectedValue, Object actualValue)
ShouldHavePropertyOrFieldWithValue
.actual
- the actual value in the failed assertion.name
- expected name of field for this classvalue
- expected value of field for classErrorMessageFactory
.Copyright © 2014–2016 AssertJ. All rights reserved.