public class ShouldContainOnly extends BasicErrorMessageFactory
String.| Modifier and Type | Class and Description |
|---|---|
static class |
ShouldContainOnly.ErrorType |
arguments, format, formatter| Modifier | Constructor and Description |
|---|---|
private |
ShouldContainOnly(java.lang.Object actual,
java.lang.Object expected,
java.lang.Iterable<?> notFound,
java.lang.Iterable<?> notExpected,
ComparisonStrategy comparisonStrategy) |
private |
ShouldContainOnly(java.lang.Object actual,
java.lang.Object expected,
java.lang.Iterable<?> notFoundOrNotExpected,
ShouldContainOnly.ErrorType errorType,
ComparisonStrategy comparisonStrategy) |
| Modifier and Type | Method and Description |
|---|---|
static ErrorMessageFactory |
shouldContainOnly(java.lang.Object actual,
java.lang.Object expected,
java.lang.Iterable<?> notFound,
java.lang.Iterable<?> notExpected)
Creates a new
. |
static ErrorMessageFactory |
shouldContainOnly(java.lang.Object actual,
java.lang.Object expected,
java.lang.Iterable<?> notFound,
java.lang.Iterable<?> notExpected,
ComparisonStrategy comparisonStrategy)
Creates a new
. |
create, create, create, equals, hashCode, toString, unquotedStringprivate ShouldContainOnly(java.lang.Object actual,
java.lang.Object expected,
java.lang.Iterable<?> notFound,
java.lang.Iterable<?> notExpected,
ComparisonStrategy comparisonStrategy)
private ShouldContainOnly(java.lang.Object actual,
java.lang.Object expected,
java.lang.Iterable<?> notFoundOrNotExpected,
ShouldContainOnly.ErrorType errorType,
ComparisonStrategy comparisonStrategy)
public static ErrorMessageFactory shouldContainOnly(java.lang.Object actual, java.lang.Object expected, java.lang.Iterable<?> notFound, java.lang.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(java.lang.Object actual, java.lang.Object expected, java.lang.Iterable<?> notFound, java.lang.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.