net.groboclown.util.datastruct.v1.tests
Class TestSynchQueue
java.lang.Object
|
+--junit.framework.Assert
|
+--junit.framework.TestCase
|
+--net.groboclown.junit.v1.MultiThreadedTestCase
|
+--net.groboclown.util.datastruct.v1.tests.TestSynchQueue
- All Implemented Interfaces:
- junit.framework.Test
- public class TestSynchQueue
- extends MultiThreadedTestCase
Changes made for 0.9.1:
- Added a new test to check the size of the queue during the
threaded part. The size should never go below 0.
- Since:
- 0.9.0
- Version:
- 0.9.1
- Author:
- Matt Albrecht
Fields inherited from class junit.framework.TestCase |
fName |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, name, 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, failNotEquals, failNotSame |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
THIS_CLASS
private static final Class THIS_CLASS
TestSynchQueue
public TestSynchQueue(String name)
suite
public static junit.framework.Test suite()
main
public static void main(String[] args)
setUp
protected void setUp()
throws Exception
- Overrides:
setUp
in class junit.framework.TestCase
tearDown
protected void tearDown()
throws Exception
- Overrides:
tearDown
in class junit.framework.TestCase
testInstantiate
public void testInstantiate()
testSimpleAdd
public void testSimpleAdd()
throws InterruptedException
testAddSize
public void testAddSize()
testRemoveSize
public void testRemoveSize()
throws InterruptedException
testUniqueRetrieval
public void testUniqueRetrieval()
throws InterruptedException
testIdenticalRetrieval
public void testIdenticalRetrieval()
throws InterruptedException
testPeek
public void testPeek()
throws InterruptedException
testRemoveAll
public void testRemoveAll()
throws InterruptedException
testSimpleThreaded
public void testSimpleThreaded()
testSyncapatedThreaded
public void testSyncapatedThreaded()
testDelayMillisThreaded
public void testDelayMillisThreaded()
testDelayNanosThreaded
public void testDelayNanosThreaded()
testPutDelayMillisThreaded
public void testPutDelayMillisThreaded()
testPutDelayMillisThreaded2
public void testPutDelayMillisThreaded2()
Written under the LGPL