| com.jcorporate.expresso.services.test.ExpressoTestCase com.jcorporate.expresso.core.cache.CacheStressTest
CacheStressTest | public class CacheStressTest extends ExpressoTestCase (Code) | | Cache Stress test. Scales the number of threads accessing the cache
at a particular time.
author: Michael Nash author: Michael Rimov version: $Revision: 1.3 $ on $Date: 2004/11/17 20:48:22 $ |
Field Summary | |
final int[] | numThreads Each index in the array represents one suite of test with the
specified number of threads. |
Method Summary | |
public int | countTestCases() Counts the number of test cases executed by run(TestResult result). | public static void | main(String[] args) | public void | setUp() Sets up the fixture, for example, open a network connection. | public static Test | suite() | public void | tearDown() Tears down the fixture, for example, close a network connection. | public void | testMultiThreaded() |
numThreads | final int[] numThreads(Code) | | Each index in the array represents one suite of test with the
specified number of threads.
|
CacheStressTest | public CacheStressTest(String name) throws Exception(Code) | | Constructs a test case with the given name.
Parameters: name - The test name |
countTestCases | public int countTestCases()(Code) | | Counts the number of test cases executed by run(TestResult result).
number of test cases: in this case 1 |
setUp | public void setUp() throws Exception(Code) | | Sets up the fixture, for example, open a network connection.
This method is called before a test is executed.
|
suite | public static Test suite() throws Exception(Code) | | Define the suite of tests that verify each function of the cache
junit.framework.TestSuite |
tearDown | public void tearDown() throws Exception(Code) | | Tears down the fixture, for example, close a network connection.
This method is called after a test is executed.
|
testMultiThreaded | public void testMultiThreaded()(Code) | | Test cache manager in a multi-threaded situation
|
|
|