public class ShouldContainExactly extends BasicErrorMessageFactory
String
.arguments, format, formatter
Modifier | Constructor and Description |
---|---|
private |
ShouldContainExactly(java.lang.Object actual,
java.lang.Object expected,
ComparisonStrategy comparisonStrategy,
java.lang.Object unexpected) |
private |
ShouldContainExactly(java.lang.Object actualElement,
java.lang.Object expectedElement,
int indexOfDifferentElements,
ComparisonStrategy comparisonStrategy) |
private |
ShouldContainExactly(java.lang.Object actual,
java.lang.Object expected,
java.lang.Object notFound,
ComparisonStrategy comparisonStrategy) |
private |
ShouldContainExactly(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 |
elementsDifferAtIndex(java.lang.Object actualElement,
java.lang.Object expectedElement,
int indexOfDifferentElements)
Creates a new
for the case where actual and expected have the same
elements in different order. |
static ErrorMessageFactory |
elementsDifferAtIndex(java.lang.Object actualElement,
java.lang.Object expectedElement,
int indexOfDifferentElements,
ComparisonStrategy comparisonStrategy)
Creates a new
for the case where actual and expected have the same
elements in different order according to the given ComparisonStrategy . |
static ErrorMessageFactory |
shouldContainExactly(java.lang.Object actual,
java.lang.Iterable<?> expected,
java.lang.Iterable<?> notFound,
java.lang.Iterable<?> notExpected)
Creates a new
. |
static ErrorMessageFactory |
shouldContainExactly(java.lang.Object actual,
java.lang.Iterable<?> expected,
java.lang.Iterable<?> notFound,
java.lang.Iterable<?> notExpected,
ComparisonStrategy comparisonStrategy)
Creates a new
. |
create, create, create, equals, hashCode, toString, unquotedString
private ShouldContainExactly(java.lang.Object actual, java.lang.Object expected, java.lang.Object notFound, java.lang.Object notExpected, ComparisonStrategy comparisonStrategy)
private ShouldContainExactly(java.lang.Object actual, java.lang.Object expected, java.lang.Object notFound, ComparisonStrategy comparisonStrategy)
private ShouldContainExactly(java.lang.Object actual, java.lang.Object expected, ComparisonStrategy comparisonStrategy, java.lang.Object unexpected)
private ShouldContainExactly(java.lang.Object actualElement, java.lang.Object expectedElement, int indexOfDifferentElements, ComparisonStrategy comparisonStrategy)
public static ErrorMessageFactory shouldContainExactly(java.lang.Object actual, java.lang.Iterable<?> expected, java.lang.Iterable<?> notFound, java.lang.Iterable<?> notExpected, ComparisonStrategy comparisonStrategy)
ShouldContainExactly
.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 shouldContainExactly(java.lang.Object actual, java.lang.Iterable<?> expected, java.lang.Iterable<?> notFound, java.lang.Iterable<?> notExpected)
ShouldContainExactly
.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 elementsDifferAtIndex(java.lang.Object actualElement, java.lang.Object expectedElement, int indexOfDifferentElements, ComparisonStrategy comparisonStrategy)
ShouldContainExactly
for the case where actual and expected have the same
elements in different order according to the given ComparisonStrategy
.actualElement
- the actual element at indexOfDifferentElements index.expectedElement
- the expected element at indexOfDifferentElements index.indexOfDifferentElements
- index where actual and expect differs.comparisonStrategy
- the ComparisonStrategy
used to evaluate assertion.ErrorMessageFactory
.public static ErrorMessageFactory elementsDifferAtIndex(java.lang.Object actualElement, java.lang.Object expectedElement, int indexOfDifferentElements)
ShouldContainExactly
for the case where actual and expected have the same
elements in different order.actualElement
- the actual element at indexOfDifferentElements index.expectedElement
- the expected element at indexOfDifferentElements index.indexOfDifferentElements
- index where actual and expect differs.ErrorMessageFactory
.