java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
InsertionSorterTest
public class InsertionSorterTest
The test class InsertionSorterTest.
Field Summary | |
---|---|
(package private) InsertionSorter |
sorter
|
Constructor Summary | |
---|---|
InsertionSorterTest()
Default constructor for test class InsertionSorterTest |
Method Summary | |
---|---|
protected void |
setUp()
Sets up the test fixture. |
protected void |
tearDown()
Tears down the test fixture. |
void |
testSortingAll()
Sorts the entire array, and then verifies that it is indeed sorted. |
void |
testSortingSubset()
Sorts only a portion of the array, and verifies that portion is sorted, and that the remainder remains untouched. |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
InsertionSorter sorter
Constructor Detail |
---|
public InsertionSorterTest()
Method Detail |
---|
protected void setUp()
setUp
in class junit.framework.TestCase
protected void tearDown()
tearDown
in class junit.framework.TestCase
public void testSortingAll()
public void testSortingSubset()