public class CollectionAsserts extends Object
Constructor and Description |
---|
CollectionAsserts() |
Modifier and Type | Method and Description |
---|---|
static <T> void |
assertIteratorEquals(String msg,
Iterator<T> i1,
Iterator<T> i2)
Test that two iterators contain the same objects in the same order.
|
static void |
assertIteratorNamedEquals(String message,
Iterator i1,
Iterator i2)
Assert iterators of Named or String-objects have equal names in any order.
|
static void |
assertListEquals(String msg,
List<? extends Object> actual,
Object... expected)
Assert that a list contains the given elements in order
|
public CollectionAsserts()
public static <T> void assertIteratorEquals(String msg, Iterator<T> i1, Iterator<T> i2)
msg
- Failure messagei1
- First iteratori2
- Second iteratorpublic static void assertIteratorNamedEquals(String message, Iterator i1, Iterator i2)
message
- Failure messagei1
- First iteratori2
- Second iteratorpublic static void assertListEquals(String msg, List<? extends Object> actual, Object... expected)
msg
- A message in case of failureactual
- A list of objectsexpected
- The values that the list should contain.Copyright © 2005–2015 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.