org.mule.tck
Class FunctionalTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.mule.tck.AbstractMuleTestCase
              extended by org.mule.tck.FunctionalTestCase
All Implemented Interfaces:
Test, TestCaseWatchdogTimeoutHandler
Direct Known Subclasses:
AbstractBpmTestCase, AbstractLoanBrokerTestCase, AbstractScriptConfigBuilderTestCase

public abstract class FunctionalTestCase
extends AbstractMuleTestCase

Is a base tast case for tests that initialise Mule using a configuration file. The default configuration builder used is the MuleXmlConfigurationBuilder. This you need to have the mule-modules-builders module/jar on your classpath. If you want to use a different builder, just overload the getBuilder() method of this class to return the type of builder you want to use with your test. Note you can overload the getBuilder() to return an initialised instance of the QuickConfiguratonBuilder, this allows the developer to programmatically build a Mule instance and roves the need for additional config files for the test.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.mule.tck.AbstractMuleTestCase
AbstractMuleTestCase.TestInfo
 
Field Summary
static String DEFAULT_BUILDER_CLASS
           
 
Fields inherited from class org.mule.tck.AbstractMuleTestCase
IGNORED_DOT_MULE_DIRS, logger
 
Constructor Summary
FunctionalTestCase()
           
 
Method Summary
protected  void doFunctionalTearDown()
           
protected  void doPostFunctionalSetUp()
           
protected  void doPreFunctionalSetUp()
           
protected  void doSetUp()
           
protected  void doTearDown()
           
protected  ConfigurationBuilder getBuilder()
           
protected abstract  String getConfigResources()
           
protected  void setupManager()
           
protected  void suitePreSetUp()
           
 
Methods inherited from class org.mule.tck.AbstractMuleTestCase
createTestInfo, createWatchdog, disposeManager, 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, 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

DEFAULT_BUILDER_CLASS

public static final String DEFAULT_BUILDER_CLASS
See Also:
Constant Field Values
Constructor Detail

FunctionalTestCase

public FunctionalTestCase()
Method Detail

doSetUp

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

suitePreSetUp

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

setupManager

protected void setupManager()
                     throws Exception
Throws:
Exception

doTearDown

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

getBuilder

protected ConfigurationBuilder getBuilder()
                                   throws Exception
Throws:
Exception

doPreFunctionalSetUp

protected void doPreFunctionalSetUp()
                             throws Exception
Throws:
Exception

doPostFunctionalSetUp

protected void doPostFunctionalSetUp()
                              throws Exception
Throws:
Exception

doFunctionalTearDown

protected void doFunctionalTearDown()
                             throws Exception
Throws:
Exception

getConfigResources

protected abstract String getConfigResources()


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