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