net.sf.molae.pipe.test
Class ListTest.SubListTest<E>

java.lang.Object
  extended by org.junit.Assert
      extended by net.sf.molae.pipe.test.ObjectTest<B>
          extended by net.sf.molae.pipe.test.CollectionTest<B,E>
              extended by net.sf.molae.pipe.test.ListTest<List<E>,E>
                  extended by net.sf.molae.pipe.test.ListTest.SubListTest<E>
Enclosing class:
ListTest<B extends List<E>,E>

public static class ListTest.SubListTest<E>
extends ListTest<List<E>,E>

Test methods to check the contract of sub lists.


Nested Class Summary
 
Nested classes/interfaces inherited from class net.sf.molae.pipe.test.ListTest
ListTest.SubListTest<E>
 
Constructor Summary
protected ListTest.SubListTest(ListTest<? extends List<E>,E> parentTest, int fromIndex, int toIndex)
          Creates a new test with a sublist from the specified parent list and indexes.
 
Method Summary
 void assertConsistency()
          Checks consistency of all reading list methods.
 
Methods inherited from class net.sf.molae.pipe.test.ListTest
assertImmutability, assertValidArray, checkAddAll, getInstance, performCycle, performCycle
 
Methods inherited from class net.sf.molae.pipe.test.CollectionTest
assertAddProhibited, assertEqualContent, assertEqualSequence, checkConsistency, getInstance, getTestValue, performBulkCycle, performIntegerTest, performValuesTest, setIntegerTestValues, setTestValues
 
Methods inherited from class net.sf.molae.pipe.test.ObjectTest
assertFalse, assertTestValuesSet, getTestObject, setTestValuesSet, toString
 
Methods inherited from class org.junit.Assert
assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertThat, assertThat, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ListTest.SubListTest

protected ListTest.SubListTest(ListTest<? extends List<E>,E> parentTest,
                               int fromIndex,
                               int toIndex)
Creates a new test with a sublist from the specified parent list and indexes.

Parameters:
parentTest - the test of the base list of the subList
fromIndex - low endpoint (inclusive) of the subList
toIndex - high endpoint (exclusive) of the subList
Method Detail

assertConsistency

public void assertConsistency()
Checks consistency of all reading list methods.

Overrides:
assertConsistency in class ListTest<List<E>,E>
Throws:
AssertionFailedError - if the list contract is broken by the tested list.