public class ShouldContainOnly extends BasicErrorMessageFactory
String
.Modifier and Type | Class and Description |
---|---|
static class |
ShouldContainOnly.ErrorType |
arguments, format
Modifier and Type | Method and Description |
---|---|
static ErrorMessageFactory |
shouldContainOnly(Object actual,
Object expected,
Iterable<?> notFound,
Iterable<?> notExpected)
Creates a new
. |
static ErrorMessageFactory |
shouldContainOnly(Object actual,
Object expected,
Iterable<?> notFound,
Iterable<?> notExpected,
ComparisonStrategy comparisonStrategy)
Creates a new
. |
create, create, create, equals, hashCode, toString, unquotedString
public static ErrorMessageFactory shouldContainOnly(Object actual, Object expected, Iterable<?> notFound, Iterable<?> notExpected, ComparisonStrategy comparisonStrategy)
ShouldContainOnly
.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
.comparisonStrategy
- the ComparisonStrategy
used to evaluate assertion.ErrorMessageFactory
.public static ErrorMessageFactory shouldContainOnly(Object actual, Object expected, Iterable<?> notFound, Iterable<?> notExpected)
ShouldContainOnly
.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
.Copyright © 2014–2019 AssertJ. All rights reserved.