com.notuvy.test
Class OrderedItemsAsserter<T>

java.lang.Object
  extended by 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

Constructor Summary
OrderedItemsAsserter(Iterable<T> pList)
           
OrderedItemsAsserter(Iterator<T> pIterator)
           
 
Method Summary
 void assertAll(Iterable<T> pExpected)
           
 void assertAll(T... items)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrderedItemsAsserter

public OrderedItemsAsserter(Iterable<T> pList)

OrderedItemsAsserter

public OrderedItemsAsserter(Iterator<T> pIterator)
Method Detail

assertAll

public void assertAll(Iterable<T> pExpected)

assertAll

public void assertAll(T... items)


Copyright © 2013. All Rights Reserved.