public class ShouldContainOnlyKeys extends BasicErrorMessageFactory
arguments, format, formatter
Modifier | Constructor and Description |
---|---|
private |
ShouldContainOnlyKeys(java.lang.Object actual,
java.lang.Object expected,
java.lang.Object notFound,
ComparisonStrategy comparisonStrategy) |
private |
ShouldContainOnlyKeys(java.lang.Object actual,
java.lang.Object expected,
java.lang.Object notFound,
java.lang.Object notExpected,
ComparisonStrategy comparisonStrategy) |
Modifier and Type | Method and Description |
---|---|
static ErrorMessageFactory |
shouldContainOnlyKeys(java.lang.Object actual,
java.lang.Object expected,
java.lang.Object notFound,
java.lang.Iterable<?> notExpected)
Creates a new
ShouldContainOnlyKeys . |
static ErrorMessageFactory |
shouldContainOnlyKeys(java.lang.Object actual,
java.lang.Object expected,
java.lang.Object notFound,
java.lang.Object notExpected)
Creates a new
ShouldContainOnlyKeys . |
create, create, create, equals, hashCode, toString, unquotedString
private ShouldContainOnlyKeys(java.lang.Object actual, java.lang.Object expected, java.lang.Object notFound, java.lang.Object notExpected, ComparisonStrategy comparisonStrategy)
private ShouldContainOnlyKeys(java.lang.Object actual, java.lang.Object expected, java.lang.Object notFound, ComparisonStrategy comparisonStrategy)
public static ErrorMessageFactory shouldContainOnlyKeys(java.lang.Object actual, java.lang.Object expected, java.lang.Object notFound, java.lang.Object notExpected)
ShouldContainOnlyKeys
.actual
- the actual value in the failed assertion.expected
- values expected to be contained in actual
.notFound
- values in expected
not found in actual
.notExpected
- values in actual
that were not in expected
.ErrorMessageFactory
.public static ErrorMessageFactory shouldContainOnlyKeys(java.lang.Object actual, java.lang.Object expected, java.lang.Object notFound, java.lang.Iterable<?> notExpected)
ShouldContainOnlyKeys
.actual
- the actual value in the failed assertion.expected
- values expected to be contained in actual
.notFound
- values in expected
not found in actual
.notExpected
- values in actual
that were not in expected
.ErrorMessageFactory
.