net.sf.zig_project.gpl.test.queue
Class ArrayQueueTest

java.lang.Object
  extended byjunit.framework.TestSuite
      extended bynet.sf.zig_project.gpl.test.queue.QueueTest
          extended bynet.sf.zig_project.gpl.test.queue.LinearQueueTest
              extended bynet.sf.zig_project.gpl.test.queue.ArrayQueueTest
All Implemented Interfaces:
Test

public class ArrayQueueTest
extends LinearQueueTest

Tests public methods of ArrayQueue. Testing is actually conducted on the subclass DynamicArrayQueue.

Version:
January 24, 2005
Author:
Frank Ziglar

Nested Class Summary
protected  class ArrayQueueTest.ArrayQueueTester
           
static class ArrayQueueTest.CheckedArrayQueue
           
 
Nested classes inherited from class net.sf.zig_project.gpl.test.queue.LinearQueueTest
LinearQueueTest.CheckedDuplexQueue, LinearQueueTest.CheckedFifoQueue, LinearQueueTest.LinearQueueTester
 
Nested classes inherited from class net.sf.zig_project.gpl.test.queue.QueueTest
QueueTest.QueueTester
 
Field Summary
 
Fields inherited from class net.sf.zig_project.gpl.test.queue.QueueTest
expected, randomizer
 
Constructor Summary
ArrayQueueTest()
           
 
Method Summary
protected  void establishBaseTests()
           
protected  List getAddTests()
           
protected  List getPeekTests()
           
protected  List getRemoveTests()
           
protected  Test makeTest(String s)
           
protected  int randomIndex()
           
static TestSuite suite()
          Creates a Test Suite to test an ArrayQueue.
protected  void validateConsistancy()
           
 
Methods inherited from class net.sf.zig_project.gpl.test.queue.QueueTest
orderTests, randomValue, run, test
 
Methods inherited from class junit.framework.TestSuite
addTest, addTestSuite, countTestCases, createTest, getName, getTestConstructor, runTest, setName, testAt, testCount, tests, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ArrayQueueTest

public ArrayQueueTest()
Method Detail

validateConsistancy

protected void validateConsistancy()
Overrides:
validateConsistancy in class LinearQueueTest

suite

public static TestSuite suite()
Creates a Test Suite to test an ArrayQueue.


randomIndex

protected int randomIndex()

makeTest

protected Test makeTest(String s)
Overrides:
makeTest in class LinearQueueTest

getAddTests

protected List getAddTests()
Overrides:
getAddTests in class LinearQueueTest

getRemoveTests

protected List getRemoveTests()
Overrides:
getRemoveTests in class LinearQueueTest

getPeekTests

protected List getPeekTests()
Overrides:
getPeekTests in class LinearQueueTest

establishBaseTests

protected void establishBaseTests()
Overrides:
establishBaseTests in class LinearQueueTest