Class ArrayUtilitiesTest

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

public class ArrayUtilitiesTest
extends junit.framework.TestCase

The test class ArrayUtilitiesTest.

Version:
July 2005
Author:
Todd A. Whittaker

Constructor Summary
ArrayUtilitiesTest()
          Default constructor for test class ArrayUtilitiesTest
 
Method Summary
protected  void setUp()
          Sets up the test fixture.
protected  void tearDown()
          Tears down the test fixture.
 void testCreateSortedIntArray()
           
 void testShuffleArray()
          Checks to see if an array is shuffled by creating an array, shuffling it, and checking to see if the shuffled result is a permuation of the original, by not an exact duplicate.
 
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
 

Constructor Detail

ArrayUtilitiesTest

public ArrayUtilitiesTest()
Default constructor for test class ArrayUtilitiesTest

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

testCreateSortedIntArray

public void testCreateSortedIntArray()

testShuffleArray

public void testShuffleArray()
Checks to see if an array is shuffled by creating an array, shuffling it, and checking to see if the shuffled result is a permuation of the original, by not an exact duplicate.