com.notuvy.test
Class OrderedItemsAsserter<T>
java.lang.Object
com.notuvy.test.OrderedItemsAsserter<T>
public class OrderedItemsAsserter<T>
- extends Object
A unit test utility for asserting equality for a whole list of items.
It also asserts that the lists are the same size.
NOTE: This can be instantiated with any Iterable collection, but not all of them
will work properly. It is necessary to have a predictable iteration order so that
expected and actual items are comparable.
For example, a SortedSet will work, but a HashSet will not.
- Author:
- murali
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OrderedItemsAsserter
public OrderedItemsAsserter(Iterable<T> pList)
OrderedItemsAsserter
public OrderedItemsAsserter(Iterator<T> pIterator)
assertAll
public void assertAll(Iterable<T> pExpected)
assertAll
public void assertAll(T... items)
Copyright © 2013. All Rights Reserved.