public class ShouldContainExactly extends BasicErrorMessageFactory
String.arguments, format| Modifier and Type | Method and Description |
|---|---|
static ErrorMessageFactory |
elementsDifferAtIndex(Object actualElement,
Object expectedElement,
int indexOfDifferentElements)
Creates a new
for the case where actual and expected have the same
elements in different order. |
static ErrorMessageFactory |
elementsDifferAtIndex(Object actualElement,
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(Object actual,
Iterable<?> expected,
Iterable<?> notFound,
Iterable<?> notExpected)
Creates a new
. |
static ErrorMessageFactory |
shouldContainExactly(Object actual,
Iterable<?> expected,
Iterable<?> notFound,
Iterable<?> notExpected,
ComparisonStrategy comparisonStrategy)
Creates a new
. |
create, create, create, equals, hashCode, toString, unquotedStringpublic static ErrorMessageFactory shouldContainExactly(Object actual, Iterable<?> expected, Iterable<?> notFound, 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(Object actual, Iterable<?> expected, Iterable<?> notFound, 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(Object actualElement, 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(Object actualElement, 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.Copyright © 2014–2018 AssertJ. All rights reserved.