|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.mule.tck.AbstractMuleTestCase
org.mule.tck.FunctionalTestCase
org.mule.providers.email.RoundTripTestCase
This demonstrates "round trip" processing of email - an email is pulled from a POP server and then sent to an SMTP server. While within Mule the message is serialized as RFC822 encoded bytes (this would let the message be transmitted over JMS etc).
The email servers for the test are managed by the greenMailSupport instance. The Mule services (defined in round-trip-test.xml) are started by the test framework. So all we need to do here is test that the message is handled correctly.
Nested Class Summary |
Nested classes inherited from class org.mule.tck.AbstractMuleTestCase |
org.mule.tck.AbstractMuleTestCase.TestInfo |
Field Summary | |
static long |
WAIT_MS
|
Fields inherited from class org.mule.tck.FunctionalTestCase |
DEFAULT_BUILDER_CLASS |
Fields inherited from class org.mule.tck.AbstractMuleTestCase |
logger |
Constructor Summary | |
RoundTripTestCase()
|
Method Summary | |
protected void |
doFunctionalTearDown()
Stop the servers when the test ends |
protected void |
doPreFunctionalSetUp()
Start the servers when the test starts |
protected String |
getConfigResources()
|
void |
testRoundTrip()
|
Methods inherited from class org.mule.tck.FunctionalTestCase |
doPostFunctionalSetUp, doSetUp, doTearDown, getBuilder, setupManager, suitePreSetUp |
Methods inherited from class org.mule.tck.AbstractMuleTestCase |
addTest, disposeManager, finalize, getDefaultModel, getManager, getName, getTestComponent, getTestConnector, getTestDescriptor, getTestEndpoint, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEventContext, getTestInfo, getTestManager, getTestSession, getTestTransformer, isDisabledInThisEnvironment, isDisabledInThisEnvironment, 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, failNotEquals, failNotSame, failSame |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final long WAIT_MS
Constructor Detail |
public RoundTripTestCase()
Method Detail |
protected String getConfigResources()
public void testRoundTrip() throws org.mule.umo.UMOException, InterruptedException
org.mule.umo.UMOException
InterruptedException
protected void doPreFunctionalSetUp() throws Exception
Exception
protected void doFunctionalTearDown() throws Exception
Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |