Class SelectionSorterTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by SelectionSorterTest
All Implemented Interfaces:
junit.framework.Test

public class SelectionSorterTest
extends junit.framework.TestCase

The test class InsertionSorterTest.

Version:
July 2005
Author:
Todd A. Whittaker

Field Summary
(package private)  SelectionSorter sorter
           
 
Constructor Summary
SelectionSorterTest()
          Default constructor for test class SelectionSorterTest
 
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

sorter

SelectionSorter sorter
Constructor Detail

SelectionSorterTest

public SelectionSorterTest()
Default constructor for test class SelectionSorterTest

Method Detail

setUp

protected void setUp()
Sets up the test fixture. Called before every test case method.

Overrides:
setUp in class junit.framework.TestCase

tearDown

protected void tearDown()
Tears down the test fixture. Called after every test case method.

Overrides:
tearDown in class junit.framework.TestCase

testSortingAll

public void testSortingAll()
Sorts the entire array, and then verifies that it is indeed sorted.


testSortingSubset

public void testSortingSubset()
Sorts only a portion of the array, and verifies that portion is sorted, and that the remainder remains untouched.