|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.jboss.test.util.test.concurrent.ThreadPoolRunnableUnitTestCase
public class ThreadPoolRunnableUnitTestCase
Tests of thread pool with Runnables added to the pool
ThreadPool
Nested Class Summary | |
---|---|
class |
ThreadPoolRunnableUnitTestCase.TestRunnable
Test runnable |
Constructor Summary | |
---|---|
ThreadPoolRunnableUnitTestCase(String name)
Create a new ThreadPoolRunnableUnitTestCase |
Method Summary | |
---|---|
void |
clearFinished()
Clear finished |
void |
clearStarted()
Clear started |
HashSet |
makeExpected(Object[] expected)
Make the expected result |
void |
notifyFinished(String data)
|
void |
notifyStarted(String data)
|
void |
releaseStarted(String data)
Release in waiting for start |
void |
saveRunnableThreadName(String data,
String name)
Save the thread name |
void |
testBasic()
|
void |
testMaximumPool()
|
void |
testMaximumQueue()
|
void |
testMultipleBasic()
|
void |
testMultiplePooling()
|
void |
testRunnableTimeout()
|
void |
testRunnableTimeoutWithSpinLoop()
|
void |
testRunnableTimeoutWithSpinLoop2()
|
void |
testSimplePooling()
|
void |
waitFinished(int target)
|
void |
waitForReleaseStarted(String data)
|
void |
waitStarted(int target)
|
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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, failNotEquals, failNotSame, failSame, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ThreadPoolRunnableUnitTestCase(String name)
name
- the test to runMethod Detail |
---|
public void testBasic() throws Exception
Exception
public void testMultipleBasic() throws Exception
Exception
public void testSimplePooling() throws Exception
Exception
public void testMultiplePooling() throws Exception
Exception
public void testMaximumPool() throws Exception
Exception
public void testMaximumQueue() throws Exception
Exception
public void testRunnableTimeout() throws Exception
Exception
public void testRunnableTimeoutWithSpinLoop() throws Exception
Exception
public void testRunnableTimeoutWithSpinLoop2() throws Exception
Exception
public void saveRunnableThreadName(String data, String name)
data
- the test dataname
- the thread namepublic void waitStarted(int target) throws InterruptedException
InterruptedException
public void releaseStarted(String data)
data
- the thread to startpublic void waitForReleaseStarted(String data)
public void notifyStarted(String data)
public void clearStarted()
public void waitFinished(int target) throws InterruptedException
InterruptedException
public void notifyFinished(String data)
public void clearFinished()
public HashSet makeExpected(Object[] expected)
expected
- the results as an object array
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |