net.sf.zig_project.gpl.test.queue
Class QueueTest
java.lang.Object
junit.framework.TestSuite
net.sf.zig_project.gpl.test.queue.QueueTest
- All Implemented Interfaces:
- Test
- Direct Known Subclasses:
- LinearQueueTest, OrderedQueueTest
- public abstract class QueueTest
- extends TestSuite
Base class to set up test cases for Queues.
While some very preliminary
tests are conducted to ensure that most states get it, in order to attempt
to test them all, this will conduct a suite of several thousand
randomized tests.
- Version:
- January 24, 2005
- Author:
- Frank Ziglar
- See Also:
suite()
Methods inherited from class junit.framework.TestSuite |
addTest, addTestSuite, countTestCases, createTest, getName, getTestConstructor, runTest, setName, testAt, testCount, tests, toString |
expected
protected final ArrayList expected
randomizer
protected static final Random randomizer
QueueTest
public QueueTest(Queue q)
run
public void run(TestResult tr)
validateConsistancy
protected void validateConsistancy()
throws AssertionFailedError
- Throws:
AssertionFailedError
randomValue
protected static Integer randomValue()
test
protected final void test(String s)
makeTest
protected abstract Test makeTest(String s)
orderTests
public void orderTests(int test_count,
int rand_prob)
getAddTests
protected List getAddTests()
getRemoveTests
protected List getRemoveTests()
getPeekTests
protected List getPeekTests()
establishBaseTests
protected void establishBaseTests()
suite
public static TestSuite suite()