Interface Ordered
public interface Ordered
Returned by calls like
IterableSubject.containsExactly(java.lang.Object...)
, Ordered
lets the caller
additionally check that the expected elements were present in the order they were passed to the
previous calls.
assertThat(supportedCharsets).containsExactly("UTF-8", "US-ASCII"); // does not check order
assertThat(supportedCharsets).containsExactly("UTF-8", "US-ASCII").inOrder(); // does check order
-
Method Summary
Modifier and TypeMethodDescriptionvoid
inOrder()
An additional assertion, implemented by some containment subjects which allows for a further constraint of orderedness.
-
Method Details
-
inOrder
void inOrder()An additional assertion, implemented by some containment subjects which allows for a further constraint of orderedness.
-