Expresso 5-5-0

com.jcorporate.expresso.core.cache
Class CacheStressTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bycom.jcorporate.expresso.services.test.ExpressoTestCase
              extended bycom.jcorporate.expresso.core.cache.CacheStressTest
All Implemented Interfaces:
junit.framework.Test

public class CacheStressTest
extends ExpressoTestCase

Title: Expresso Description: The Expresso Framework Copyright: Copyright (c) 2001-2002 Company: JCorporate Ltd.

Version:
$Revision: 1.10 $ on $Date: 2003/06/03 06:12:11 $
Author:
Michael Nash, Michael Rimov

Constructor Summary
CacheStressTest(String name)
          Constructs a test case with the given name.
 
Method Summary
 int countTestCases()
          Counts the number of test cases executed by run(TestResult result).
static void main(String[] args)
           
 void setUp()
          Sets up the fixture, for example, open a network connection.
static junit.framework.Test suite()
          Define the suite of tests that verify each function of the cache
 void tearDown()
          Tears down the fixture, for example, close a network connection.
 void testMultiThreaded()
          Test cache manager in a multi-threaded situation
 
Methods inherited from class com.jcorporate.expresso.services.test.ExpressoTestCase
getLog
 
Methods inherited from class junit.framework.TestCase
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CacheStressTest

public CacheStressTest(String name)
                throws Exception
Constructs a test case with the given name.

Parameters:
name - The test name
Throws:
Exception
Method Detail

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception

setUp

public void setUp()
           throws Exception
Sets up the fixture, for example, open a network connection. This method is called before a test is executed.

Overrides:
setUp in class ExpressoTestCase
Throws:
Exception

tearDown

public void tearDown()
              throws Exception
Tears down the fixture, for example, close a network connection. This method is called after a test is executed.

Overrides:
tearDown in class ExpressoTestCase
Throws:
Exception

suite

public static junit.framework.Test suite()
                                  throws Exception
Define the suite of tests that verify each function of the cache

Returns:
junit.framework.TestSuite
Throws:
Exception

countTestCases

public int countTestCases()
Counts the number of test cases executed by run(TestResult result).

Returns:
number of test cases: in this case 1

testMultiThreaded

public void testMultiThreaded()
Test cache manager in a multi-threaded situation


Expresso 5-5-0

Please see www.jcorporate.com for information about new Expresso releases.