org.jboss.test.cmp2.cmrstress
Class CMRStressTestCase
java.lang.Object
TestCase
org.jboss.test.JBossTestCase (src)
org.jboss.test.cmp2.cmrstress.CMRStressTestCase
- public class CMRStressTestCase
- extends JBossTestCase (src)
A test suite designed to stress test CMR operations by invoking lots of them
at around the same time from multiple threads.
In particular, we are testing the ability to load all the beans on the many
side of 1..many relationship, where the getter has been
marked read-only
.
This code is based upon the original test case provided by Andrew May.
- See Also:
org.jboss.test.JBossTestCase.
,
Serialized Form
Nested Class Summary |
static class |
CMRStressTestCase.CMRTest (src)
This nested Runnable simply invokes a method of the specified
parent bean many times in a loop. |
Method Summary |
protected void |
setUp()
|
static Test |
suite()
|
void |
testRelations()
Launch threads which access the CMR collection of the parent bean created below. |
Methods inherited from class org.jboss.test.JBossTestCase (src) |
deploy, flushAuthCache, flushAuthCache, getBeanCount, getDeployerName, getDeploySetup, getDeployURL, getInitialContext, getIterationCount, getJndiInitFactory, getJndiURL, getLog, getResourceURL, getServer, getServerHost, getThreadCount, initDelegate, invoke, restartDBPool, sleep, testServerFound, undeploy |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CMRStressTestCase
public CMRStressTestCase(java.lang.String name)
throws java.io.IOException
suite
public static Test suite()
throws java.lang.Exception
- Throws:
java.lang.Exception
testRelations
public void testRelations()
throws java.lang.Exception
- Launch threads which access the CMR collection of the parent bean created below.
- Throws:
java.lang.Exception
- See Also:
#setup.
setUp
protected void setUp()
throws java.lang.Exception
- Throws:
java.lang.Exception