com.xenonsoft.bridgetown.test
Class TestContextCache

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bycom.xenonsoft.bridgetown.test.TestContextCache
All Implemented Interfaces:
junit.framework.Test

public class TestContextCache
extends junit.framework.TestCase

A unit test to configurate the context cache implementation

Version:
$Id: TestContextCache.java,v 1.2 2004/10/27 02:24:53 peter_pilgrim Exp $
Author:
peterp, 04-Oct-2004

Nested Class Summary
protected  class TestContextCache.AttackerThread
          Specialist attacker thread designed to assault the context cache implementation.
 
Field Summary
protected  IContextCache contextCache
           
protected  ContextConfig contextConfig
           
 
Constructor Summary
TestContextCache()
           
 
Method Summary
static void main(java.lang.String[] args)
          Main program
protected  void setUp()
           
static junit.framework.Test suite()
           
protected  void tearDown()
           
 void testClear()
          Test clear method of the context cache
 void testContains()
          Test the containment method
 void testGetAndPutBean()
          Test the basic get and put methods
 void testGetContextConfig()
          Test retrieval of the context config
 void testGetServiceBeanNames()
          Test retrieval of service bean names
 void testLongTermThreads()
          Special test to check multiple threads operation
 void testRemoveBean()
          Test removal of name bean
 void testSize()
          Test the context cache size
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

contextCache

protected IContextCache contextCache

contextConfig

protected ContextConfig contextConfig
Constructor Detail

TestContextCache

public TestContextCache()
Method Detail

main

public static void main(java.lang.String[] args)
Main program


suite

public static junit.framework.Test suite()

setUp

protected void setUp()
              throws java.lang.Exception
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Throws:
java.lang.Exception

testGetContextConfig

public void testGetContextConfig()
Test retrieval of the context config


testGetAndPutBean

public void testGetAndPutBean()
Test the basic get and put methods


testSize

public void testSize()
Test the context cache size


testContains

public void testContains()
Test the containment method


testRemoveBean

public void testRemoveBean()
Test removal of name bean


testGetServiceBeanNames

public void testGetServiceBeanNames()
Test retrieval of service bean names


testClear

public void testClear()
Test clear method of the context cache


testLongTermThreads

public void testLongTermThreads()
Special test to check multiple threads operation



Copyright © 2005 XeNoNSoFT.com. All Rights Reserved.