org.mule.component
Class PooledJavaComponentTestCase

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

public class PooledJavaComponentTestCase
extends AbstractComponentTestCase


Nested Class Summary
 
Nested classes/interfaces inherited from class org.mule.tck.AbstractMuleTestCase
AbstractMuleTestCase.TestInfo
 
Field Summary
static byte MAX_ACTIVE
           
static long MAX_WAIT
           
 
Fields inherited from class org.mule.tck.AbstractMuleTestCase
callbackCalled, IGNORED_DOT_MULE_DIRS, LOCK_TIMEOUT, logger, muleContext, RECEIVE_TIMEOUT, TEST_MESSAGE
 
Constructor Summary
PooledJavaComponentTestCase()
           
 
Method Summary
protected  org.mule.config.PoolingProfile getDefaultPoolingProfile()
           
protected  org.mule.object.PrototypeObjectFactory getObjectFactory()
           
 void test()
           
 void testBlockExpiryOnExhaust()
           
 void testBlockOnExhaust()
           
 void testClearPool()
           
 void testComponentCreation()
           
 void testCreatePool()
           
 void testDisposingFactoryDisposesObject()
           
 void testFailOnExhaust()
           
 void testGrowOnExhaust()
           
 void testLifeCycleMethods()
           
 void testObjectUniqueness()
           
 void testPoolCreation()
           
 
Methods inherited from class org.mule.tck.AbstractMuleTestCase
configureMuleContext, createMuleContext, createTestInfo, createWatchdog, disposeManager, doSetUp, doTearDown, getBuilder, getConfigurationResources, getName, getStartUpProperties, getTestConnector, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEventContext, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEvent, getTestInfo, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestService, getTestService, getTestService, getTestSession, getTestTransformer, handleTimeout, isDisabledInThisEnvironment, isDisabledInThisEnvironment, isDisposeManagerPerSuite, isExcluded, isOffline, isStartContext, registerTestMethod, run, runBare, setDisposeManagerPerSuite, setName, setStartContext, setUp, suitePostTearDown, suitePreSetUp, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, run, runTest, 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, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MAX_ACTIVE

public static final byte MAX_ACTIVE
See Also:
Constant Field Values

MAX_WAIT

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

PooledJavaComponentTestCase

public PooledJavaComponentTestCase()
Method Detail

getDefaultPoolingProfile

protected org.mule.config.PoolingProfile getDefaultPoolingProfile()

getObjectFactory

protected org.mule.object.PrototypeObjectFactory getObjectFactory()

testComponentCreation

public void testComponentCreation()
                           throws Exception
Throws:
Exception

testPoolCreation

public void testPoolCreation()
                      throws Exception
Throws:
Exception

test

public void test()
          throws Exception
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

testObjectUniqueness

public void testObjectUniqueness()
                          throws Exception
Throws:
Exception

testDisposingFactoryDisposesObject

public void testDisposingFactoryDisposesObject()
                                        throws Exception
Throws:
Exception

testLifeCycleMethods

public void testLifeCycleMethods()
                          throws Exception
Throws:
Exception


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