net.sf.molae.pipe.test
Class ListTest.SubListTest<E>
java.lang.Object
org.junit.Assert
net.sf.molae.pipe.test.ObjectTest<B>
net.sf.molae.pipe.test.CollectionTest<B,E>
net.sf.molae.pipe.test.ListTest<List<E>,E>
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.
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.CollectionTest |
assertAddProhibited, assertEqualContent, assertEqualSequence, checkConsistency, getInstance, getTestValue, performBulkCycle, performIntegerTest, performValuesTest, setIntegerTestValues, setTestValues |
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 |
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 subListfromIndex
- low endpoint (inclusive) of the subListtoIndex
- high endpoint (exclusive) of the subList
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.