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
ShouldContainExactly 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
ShouldContainExactly for the case where actual and expected have the same
elements in different order according to the given ComparisonStrategy . |
static ErrorMessageFactory |
shouldContainExactly(Object actual,
Object expected,
Object notFound,
Iterable<?> notExpected)
Creates a new
ShouldContainExactly . |
static ErrorMessageFactory |
shouldContainExactly(Object actual,
Object expected,
Object notFound,
Iterable<?> notExpected,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldContainExactly . |
static ErrorMessageFactory |
shouldContainExactly(Object actual,
Object expected,
Object notFound,
Object notExpected)
Creates a new
ShouldContainExactly . |
static ErrorMessageFactory |
shouldContainExactly(Object actual,
Object expected,
Object notFound,
Object notExpected,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldContainExactly . |
static ErrorMessageFactory |
shouldHaveSameSize(Object actual,
Object expected,
int actualSize,
int expectedSize,
ComparisonStrategy comparisonStrategy) |
create, create, create, equals, hashCode, toString, unquotedString
public static ErrorMessageFactory shouldContainExactly(Object actual, Object expected, Object notFound, Object 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, Object expected, Object 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, Object expected, Object notFound, Object 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 shouldContainExactly(Object actual, Object expected, Object 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 shouldHaveSameSize(Object actual, Object expected, int actualSize, int expectedSize, ComparisonStrategy comparisonStrategy)
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 © 2013–2017 AssertJ. All rights reserved.