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
ShouldOnlyHaveFields . |
static ErrorMessageFactory |
shouldOnlyHaveFields(Class<?> actual,
Collection<String> expected,
Collection<String> notFound,
Collection<String> notExpected)
Creates a new
ShouldOnlyHaveFields . |
create, create, create, equals, hashCode, toString, unquotedString
public 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 © 2013–2017 AssertJ. All rights reserved.