| |
|
| org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase
ThreadPoolRunnableUnitTestCase | public class ThreadPoolRunnableUnitTestCase extends TestCase (Code) | | Tests of thread pool with Runnables added to the pool
See Also: org.jboss.util.threadpool.ThreadPool author: Adrian.Brock author: Scott.Stark@jboss.org version: $Revision: 61634 $ |
Inner Class :public class TestRunnable implements Runnable | |
BASIC | final static int BASIC(Code) | | Basic test
|
HOLD_START | final static int HOLD_START(Code) | | Hold the thread after start
|
finishedRunnables | HashSet finishedRunnables(Code) | | The finished runnables
|
startedReleases | HashSet startedReleases(Code) | | The started releases
|
startedRunnables | HashSet startedRunnables(Code) | | The started runnables
|
ThreadPoolRunnableUnitTestCase | public ThreadPoolRunnableUnitTestCase(String name)(Code) | | Create a new ThreadPoolRunnableUnitTestCase
Parameters: name - the test to run |
clearFinished | public synchronized void clearFinished()(Code) | | Clear finished
|
clearStarted | public synchronized void clearStarted()(Code) | | Clear started
|
makeExpected | public HashSet makeExpected(Object[] expected)(Code) | | Make the expected result
Parameters: expected - the results as an object array the expected result |
notifyFinished | public synchronized void notifyFinished(String data)(Code) | | Notify finished
|
notifyStarted | public synchronized void notifyStarted(String data)(Code) | | Notify started
|
releaseStarted | public synchronized void releaseStarted(String data)(Code) | | Release in waiting for start
Parameters: data - the thread to start |
saveRunnableThreadName | public synchronized void saveRunnableThreadName(String data, String name)(Code) | | Save the thread name
Parameters: data - the test data Parameters: name - the thread name |
testMaximumPool | public void testMaximumPool() throws Exception(Code) | | Test maximum pool
|
testMaximumQueue | public void testMaximumQueue() throws Exception(Code) | | Test maximum cache
|
testMultipleBasic | public void testMultipleBasic() throws Exception(Code) | | Multiple Basic test
|
testMultiplePooling | public void testMultiplePooling() throws Exception(Code) | | Test multiple pooling
|
testRunnableTimeout | public void testRunnableTimeout() throws Exception(Code) | | Test runnable timeouts
|
testRunnableTimeoutWithSpinLoop | public void testRunnableTimeoutWithSpinLoop() throws Exception(Code) | | Test runnable timeouts
|
testRunnableTimeoutWithSpinLoop2 | public void testRunnableTimeoutWithSpinLoop2() throws Exception(Code) | | Test runnable timeouts
|
testSimplePooling | public void testSimplePooling() throws Exception(Code) | | Test pooling
|
waitForReleaseStarted | public synchronized void waitForReleaseStarted(String data)(Code) | | Wait for release started
|
|
|
|