public class ShouldHavePropertyOrField extends BasicErrorMessageFactory
arguments, format
Modifier and Type | Method and Description |
---|---|
static ErrorMessageFactory |
shouldHavePropertyOrField(Object actual,
String name)
Creates a new
. |
create, create, create, equals, hashCode, toString, unquotedString
public static ErrorMessageFactory shouldHavePropertyOrField(Object actual, String name)
ShouldHavePropertyOrField
.actual
- the actual value in the failed assertion.name
- expected name of field for this classErrorMessageFactory
.Copyright © 2013–2018 AssertJ. All rights reserved.