qflib 0.98.0

de.qfs.lib.util
Class TaskQueue.UnitTest

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--de.qfs.lib.util.TaskQueue.UnitTest
All Implemented Interfaces:
junit.framework.Test
Enclosing class:
TaskQueue

public static class TaskQueue.UnitTest
extends junit.framework.TestCase

Test cases for the TaskQueue class. XXX Need to design better tests as these don't work reliably with native threads.


Constructor Summary
TaskQueue.UnitTest(java.lang.String name)
          Create a new UnitTest.
 
Method Summary
protected  void setUp()
          Set up the test fixture.
static junit.framework.Test suite()
          Get the suite of tests.
 void XXXtestHighPriority()
          Test TaskQueue with high priority.
 void XXXtestLowPriority()
          Test TaskQueue with low priority.
 void XXXtestTerminate()
          Test immediate termination of TaskQueue with low priority.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, name, run, run, runBare, runTest, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TaskQueue.UnitTest

public TaskQueue.UnitTest(java.lang.String name)
Create a new UnitTest.
Parameters:
name - The name of the test.
Method Detail

setUp

protected void setUp()
Set up the test fixture.
Overrides:
setUp in class junit.framework.TestCase

suite

public static junit.framework.Test suite()
Get the suite of tests.
Returns:
The tests.

XXXtestHighPriority

public void XXXtestHighPriority()
Test TaskQueue with high priority.

XXXtestLowPriority

public void XXXtestLowPriority()
Test TaskQueue with low priority.

XXXtestTerminate

public void XXXtestTerminate()
Test immediate termination of TaskQueue with low priority.

qflib 0.98.0