|
||||||||||
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.tck.DynamicPortTestCase
org.mule.transport.email.EmailRoundTripTestCase
public class EmailRoundTripTestCase
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 email-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/interfaces inherited from class org.mule.tck.AbstractMuleTestCase |
---|
AbstractMuleTestCase.TestInfo |
Field Summary |
---|
Fields inherited from class org.mule.tck.AbstractMuleTestCase |
---|
callbackCalled, CLASSNAME_ANNOTATIONS_CONFIG_BUILDER, DEFAULT_MULE_TEST_TIMEOUT_SECS, IGNORED_DOT_MULE_DIRS, LOCK_TIMEOUT, logger, muleContext, numPorts, ports, PROPERTY_MULE_TEST_TIMEOUT, RECEIVE_TIMEOUT, TEST_MESSAGE, testTimeoutSecs |
Constructor Summary | |
---|---|
EmailRoundTripTestCase()
|
Method Summary | |
---|---|
protected java.lang.String |
getConfigResources()
|
protected int |
getNumPortsToFind()
|
protected void |
suitePostTearDown()
Stop the servers when the test ends |
protected void |
suitePreSetUp()
Start the servers when the test starts |
void |
testRoundTrip()
|
Methods inherited from class org.mule.tck.DynamicPortTestCase |
---|
doSetUp, doTearDown |
Methods inherited from class org.mule.tck.FunctionalTestCase |
---|
getBuilder, getComponent, getComponent, getFunctionalTestComponent, loadResource, loadResourceAsString |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, 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, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EmailRoundTripTestCase()
Method Detail |
---|
protected java.lang.String getConfigResources()
getConfigResources
in class FunctionalTestCase
protected void suitePreSetUp() throws java.lang.Exception
suitePreSetUp
in class AbstractMuleTestCase
java.lang.Exception
protected void suitePostTearDown() throws java.lang.Exception
suitePostTearDown
in class AbstractMuleTestCase
java.lang.Exception
public void testRoundTrip() throws MuleException, java.lang.InterruptedException
MuleException
java.lang.InterruptedException
protected int getNumPortsToFind()
getNumPortsToFind
in class DynamicPortTestCase
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |