org.mule.tck
Class AbstractTransformerTestCase

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

public abstract class AbstractTransformerTestCase
extends AbstractMuleTestCase


Nested Class Summary
 
Nested classes/interfaces inherited from class org.mule.tck.AbstractMuleTestCase
AbstractMuleTestCase.TestInfo
 
Field Summary
 
Fields inherited from class org.mule.tck.AbstractMuleTestCase
callbackCalled, IGNORED_DOT_MULE_DIRS, LOCK_TIMEOUT, logger, muleContext, TEST_MESSAGE
 
Constructor Summary
AbstractTransformerTestCase()
           
 
Method Summary
 boolean compareResults(Object expected, Object result)
           
 boolean compareRoundtripResults(Object expected, Object result)
           
protected  void doSetUp()
           
protected  void doTearDown()
           
 void doTestBadReturnType(Transformer tran, Object src)
           
protected  void doTestClone(Transformer original, Transformer clone)
           
abstract  Object getResultData()
           
abstract  Transformer getRoundTripTransformer()
           
abstract  Object getTestData()
           
abstract  Transformer getTransformer()
           
protected  String normalizeString(String rawString)
           
 void testBadReturnType()
           
 void testRoundTrip()
           
 void testRoundtripBadReturnType()
           
 void testRoundtripTransform()
           
 void testTransform()
           
 
Methods inherited from class org.mule.tck.AbstractMuleTestCase
createMuleContext, createTestInfo, createWatchdog, disposeManager, getBuilder, getConfigurationResources, getName, getStartUpProperties, getTestConnector, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEventContext, getTestInboundEndpoint, getTestInfo, 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
 

Constructor Detail

AbstractTransformerTestCase

public AbstractTransformerTestCase()
Method Detail

doSetUp

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

doTearDown

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

normalizeString

protected String normalizeString(String rawString)

testTransform

public void testTransform()
                   throws Exception
Throws:
Exception

testRoundtripTransform

public void testRoundtripTransform()
                            throws Exception
Throws:
Exception

testBadReturnType

public void testBadReturnType()
                       throws Exception
Throws:
Exception

testRoundtripBadReturnType

public void testRoundtripBadReturnType()
                                throws Exception
Throws:
Exception

testRoundTrip

public void testRoundTrip()
                   throws Exception
Throws:
Exception

doTestBadReturnType

public void doTestBadReturnType(Transformer tran,
                                Object src)
                         throws Exception
Throws:
Exception

doTestClone

protected void doTestClone(Transformer original,
                           Transformer clone)
                    throws Exception
Throws:
Exception

getTransformer

public abstract Transformer getTransformer()
                                    throws Exception
Throws:
Exception

getRoundTripTransformer

public abstract Transformer getRoundTripTransformer()
                                             throws Exception
Throws:
Exception

getTestData

public abstract Object getTestData()

getResultData

public abstract Object getResultData()

compareResults

public boolean compareResults(Object expected,
                              Object result)

compareRoundtripResults

public boolean compareRoundtripResults(Object expected,
                                       Object result)


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