|
|||||||||
| 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.osesb.utilities.junit.OSESBTestCase
org.osesb.utilities.junit.OSESBThreadedTestCase
org.osesb.objectpools.test.ThreadedKeyPooledObjectTest
public class ThreadedKeyPooledObjectTest
This class tests the basic behavior of keyed object pools when accessed by multiple threads. It does not execute methods on pooled objects; the tests focus on correct behavior of the factories and the keyed pool.
Add tests for new keyed, object pools.
| Field Summary |
|---|
| Fields inherited from class org.osesb.utilities.junit.OSESBThreadedTestCase |
|---|
numberOfIterations, numberOfTestThreads, threadDelay |
| Fields inherited from class org.osesb.utilities.junit.OSESBTestCase |
|---|
configFile, log, reader, testDataDirectory, testProperties, thisClassName |
| Constructor Summary | |
|---|---|
ThreadedKeyPooledObjectTest(java.lang.String name)
Construct a new instance. |
|
| Method Summary | |
|---|---|
protected void |
commonKeyedPoolTest()
Common keyed pool test. |
static void |
main(java.lang.String[] args)
The main method runs all the tests in the text ui |
void |
setUp()
This method is called before a test is executed. |
static junit.framework.Test |
suite()
The suite method runs all the tests |
void |
tearDown()
This method is called after a test is executed. |
void |
testKeyedPooledJAXRPCClient()
Test JAXRPCClientKeyedPoolFactory. |
void |
testKeyedPooledJMSClient()
Test JMSClientKeyedPoolFactory. |
void |
testKeyedPooledSAXParser()
Test SAXKeyedPoolFactory. |
void |
testKeyedPooledValidationBean()
Test ValidationBeanKeyedPoolFactory. |
| Methods inherited from class org.osesb.utilities.junit.OSESBThreadedTestCase |
|---|
displayStartupMessage |
| Methods inherited from class org.osesb.utilities.junit.OSESBTestCase |
|---|
getBooleanTestProperty, getIntTestProperty, getLongTestProperty, getTestResourcesAsStreams, getTestResourcesAsText, getTestResourcesFiles, loadTestProperties, readTestFilesAsStreams |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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 ThreadedKeyPooledObjectTest(java.lang.String name)
| Method Detail |
|---|
public static junit.framework.Test suite()
public void setUp()
throws java.lang.Exception
setUp in class OSESBTestCasejava.lang.Exception
public void tearDown()
throws java.lang.Exception
tearDown in class OSESBTestCasejava.lang.Exceptionpublic static void main(java.lang.String[] args)
public void testKeyedPooledSAXParser()
throws java.lang.Exception
java.lang.Exception
public void testKeyedPooledJMSClient()
throws java.lang.Exception
java.lang.Exception
public void testKeyedPooledJAXRPCClient()
throws java.lang.Exception
java.lang.Exception
public void testKeyedPooledValidationBean()
throws java.lang.Exception
java.lang.Exception
protected void commonKeyedPoolTest()
throws java.lang.Exception
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||