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