public class ShouldOnlyHaveFields extends BasicErrorMessageFactory
arguments, format| Modifier and Type | Method and Description |
|---|---|
static ErrorMessageFactory |
shouldOnlyHaveDeclaredFields(Class<?> actual,
Collection<String> expected,
Collection<String> notFound,
Collection<String> notExpected)
Creates a new
. |
static ErrorMessageFactory |
shouldOnlyHaveFields(Class<?> actual,
Collection<String> expected,
Collection<String> notFound,
Collection<String> notExpected)
Creates a new
. |
create, create, create, equals, hashCode, toString, unquotedStringpublic static ErrorMessageFactory shouldOnlyHaveFields(Class<?> actual, Collection<String> expected, Collection<String> notFound, Collection<String> notExpected)
ShouldOnlyHaveFields.actual - the actual value in the failed assertion.expected - expected fields for this classnotFound - fields in expected not found in the actual.notExpected - fields in the actual that were not in expected.ErrorMessageFactory.public static ErrorMessageFactory shouldOnlyHaveDeclaredFields(Class<?> actual, Collection<String> expected, Collection<String> notFound, Collection<String> notExpected)
ShouldOnlyHaveFields.actual - the actual value in the failed assertion.expected - expected fields for this classnotFound - fields in expected not found in the actual.notExpected - fields in the actual that were not in expected.ErrorMessageFactory.Copyright © 2014–2018 AssertJ. All rights reserved.