org.mule.tck.model
Class AbstractPoolTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.mule.tck.AbstractMuleTestCase
              extended by org.mule.tck.model.AbstractPoolTestCase
All Implemented Interfaces:
Test, TestCaseWatchdogTimeoutHandler

public abstract class AbstractPoolTestCase
extends AbstractMuleTestCase


Nested Class Summary
 
Nested classes/interfaces inherited from class org.mule.tck.AbstractMuleTestCase
AbstractMuleTestCase.TestInfo
 
Field Summary
static byte BLOCK_WHEN_EXHAUSTED
           
static byte DEFAULT_POOL_SIZE
           
static long DEFAULT_WAIT
           
static byte FAIL_WHEN_EXHAUSTED
           
static byte GROW_WHEN_EXHAUSTED
           
 
Fields inherited from class org.mule.tck.AbstractMuleTestCase
IGNORED_DOT_MULE_DIRS, logger
 
Constructor Summary
AbstractPoolTestCase()
           
 
Method Summary
abstract  ObjectPool createPool(MuleDescriptor descriptor, byte action)
           
protected  void doSetUp()
           
abstract  UMOPoolFactory getPoolFactory()
           
 void testBlockExpiryOnExhaust()
           
 void testBlockOnExhaust()
           
 void testClearPool()
           
 void testCreateFromFactory()
           
 void testCreatePool()
           
 void testFailOnExhaust()
           
 void testGrowOnExhaust()
           
 void testPoolLifecycle()
           
 
Methods inherited from class org.mule.tck.AbstractMuleTestCase
createTestInfo, createWatchdog, disposeManager, doTearDown, getDefaultModel, getManager, getName, getTestComponent, getTestConnector, getTestDescriptor, getTestEndpoint, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEventContext, getTestInfo, getTestManager, getTestSession, getTestTransformer, handleTimeout, isDisabledInThisEnvironment, isDisabledInThisEnvironment, isDisposeManagerPerSuite, isExcluded, isOffline, run, runBare, setDisposeManagerPerSuite, setUp, suitePostSetUp, suitePostTearDown, suitePreSetUp, suitePreTearDown, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, run, 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

FAIL_WHEN_EXHAUSTED

public static final byte FAIL_WHEN_EXHAUSTED
See Also:
Constant Field Values

GROW_WHEN_EXHAUSTED

public static final byte GROW_WHEN_EXHAUSTED
See Also:
Constant Field Values

BLOCK_WHEN_EXHAUSTED

public static final byte BLOCK_WHEN_EXHAUSTED
See Also:
Constant Field Values

DEFAULT_POOL_SIZE

public static final byte DEFAULT_POOL_SIZE
See Also:
Constant Field Values

DEFAULT_WAIT

public static final long DEFAULT_WAIT
See Also:
Constant Field Values
Constructor Detail

AbstractPoolTestCase

public AbstractPoolTestCase()
Method Detail

doSetUp

protected void doSetUp()
                throws Exception
Overrides:
doSetUp in class AbstractMuleTestCase
Throws:
Exception

testCreatePool

public void testCreatePool()
                    throws Exception
Throws:
Exception

testFailOnExhaust

public void testFailOnExhaust()
                       throws Exception
Throws:
Exception

testBlockExpiryOnExhaust

public void testBlockExpiryOnExhaust()
                              throws Exception
Throws:
Exception

testBlockOnExhaust

public void testBlockOnExhaust()
                        throws Exception
Throws:
Exception

testGrowOnExhaust

public void testGrowOnExhaust()
                       throws Exception
Throws:
Exception

testClearPool

public void testClearPool()
                   throws Exception
Throws:
Exception

testCreateFromFactory

public void testCreateFromFactory()
                           throws Exception
Throws:
Exception

testPoolLifecycle

public void testPoolLifecycle()
                       throws Exception
Throws:
Exception

createPool

public abstract ObjectPool createPool(MuleDescriptor descriptor,
                                      byte action)
                               throws InitialisationException
Throws:
InitialisationException

getPoolFactory

public abstract UMOPoolFactory getPoolFactory()


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.