eaLib API Docs
Last Modified : January 7 2002

mss.ea.test.core
Class ArraySortTest

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--mss.ea.test.core.ArraySortTest
All Implemented Interfaces:
junit.framework.Test

public class ArraySortTest
extends junit.framework.TestCase

Tests ArraySort.


Field Summary
protected  int size
          Size of the array to test.
protected  java.lang.Object[] sorted
          Sorted array.
protected  java.lang.Object[] unsorted
          Unsorted array.
 
Constructor Summary
ArraySortTest(java.lang.String name)
          Constructor.
 
Method Summary
protected  void setUp()
          Setup.
protected  void tearDown()
          Tear down.
 void testBubbleSort()
          Test bubble sort.
 void testBubbleSort2()
          Test bubble sort 2.
 void testHeapSort()
          Test heap sort.
 void testInsertionSort()
          Test insertion sort.
 void testSelectionSort()
          Test selection sort.
 void testShellSort()
          Test shell sort.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, 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

size

protected int size
Size of the array to test.

sorted

protected java.lang.Object[] sorted
Sorted array.

unsorted

protected java.lang.Object[] unsorted
Unsorted array.
Constructor Detail

ArraySortTest

public ArraySortTest(java.lang.String name)
Constructor.
Parameters:
name - name of the test
Method Detail

setUp

protected void setUp()
Setup.
Overrides:
setUp in class junit.framework.TestCase

tearDown

protected void tearDown()
Tear down.
Overrides:
tearDown in class junit.framework.TestCase

testBubbleSort

public void testBubbleSort()
Test bubble sort.

testBubbleSort2

public void testBubbleSort2()
Test bubble sort 2.

testHeapSort

public void testHeapSort()
Test heap sort.

testInsertionSort

public void testInsertionSort()
Test insertion sort.

testSelectionSort

public void testSelectionSort()
Test selection sort.

testShellSort

public void testShellSort()
Test shell sort.

eaLib API Docs
Last Modified : January 7 2002

Copyright © 2000-2001 Technical University of Ilmenau, Department ESS