ErrorMessageFactory
public class ShouldHavePropertyOrFieldWithValue extends BasicErrorMessageFactory
arguments, format
Modifier and Type | Method | 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 the field of this classexpectedValue
- expected value of the field of the classactualValue
- actual value of the field of the classErrorMessageFactory
.Copyright © 2014–2019. All rights reserved.