ErrorMessageFactorypublic class ShouldContainOnly extends BasicErrorMessageFactory
String.| Modifier and Type | Class | Description |
|---|---|---|
static class |
ShouldContainOnly.ErrorType |
arguments, format| Modifier and Type | Method | Description |
|---|---|---|
static ErrorMessageFactory |
shouldContainOnly(Object actual,
Object expected,
Iterable<?> notFound,
Iterable<?> notExpected) |
Creates a new
ShouldContainOnly. |
static ErrorMessageFactory |
shouldContainOnly(Object actual,
Object expected,
Iterable<?> notFound,
Iterable<?> notExpected,
ComparisonStrategy comparisonStrategy) |
Creates a new
ShouldContainOnly. |
create, create, create, equals, hashCode, toString, unquotedStringpublic 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. All rights reserved.