|
||||||||||
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.transport.AbstractConnectorTestCase
org.mule.transport.email.connectors.AbstractMailConnectorFunctionalTestCase
public abstract class AbstractMailConnectorFunctionalTestCase
Start a (greenmail) mail server with a known message, for use in subclasses.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.mule.tck.AbstractMuleTestCase |
---|
AbstractMuleTestCase.TestInfo |
Field Summary | |
---|---|
static String |
EMAIL
|
static String |
LOCALHOST
|
static String |
MESSAGE
|
static boolean |
NO_INITIAL_EMAIL
|
static String |
PASSWORD
|
static String |
PROVIDER
|
static boolean |
SEND_INITIAL_EMAIL
|
static int |
START_ATTEMPTS
|
static long |
STARTUP_PERIOD_MS
|
static int |
TEST_ATTEMPTS
|
static String |
USER
|
Fields inherited from class org.mule.transport.AbstractConnectorTestCase |
---|
connectorName, encoding |
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 | |
---|---|
protected |
AbstractMailConnectorFunctionalTestCase(boolean initialEmail,
String protocol)
|
Method Summary | |
---|---|
protected void |
assertMessageOk(Object mailMessage)
|
protected void |
doSetUp()
Exactly the same a AbstractMuleTestCase.setUp() in normal JUnit test cases. |
protected void |
doTearDown()
Exactly the same a AbstractMuleTestCase.tearDown() in normal JUnit test cases. |
protected com.icegreen.greenmail.util.GreenMail |
getServers()
|
String |
getTestEndpointURI()
|
Object |
getValidMessage()
|
protected boolean |
transformInboundMessage()
|
protected String |
uniqueName(String root)
|
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 |
Field Detail |
---|
public static final String LOCALHOST
public static final String USER
public static final String PROVIDER
public static final String EMAIL
public static final String PASSWORD
public static final String MESSAGE
public static final int START_ATTEMPTS
public static final int TEST_ATTEMPTS
public static final long STARTUP_PERIOD_MS
public static final boolean SEND_INITIAL_EMAIL
public static final boolean NO_INITIAL_EMAIL
Constructor Detail |
---|
protected AbstractMailConnectorFunctionalTestCase(boolean initialEmail, String protocol)
Method Detail |
---|
protected void doSetUp() throws Exception
AbstractMuleTestCase
AbstractMuleTestCase.setUp()
in normal JUnit test cases. this is called before a test
method has been called.
doSetUp
in class AbstractConnectorTestCase
Exception
- if something fails that should halt the testcaseprotected void doTearDown() throws Exception
AbstractMuleTestCase
AbstractMuleTestCase.tearDown()
in normal JUnit test cases. this is called after a test
method has been called.
doTearDown
in class AbstractConnectorTestCase
Exception
- if something fails that should halt the testcaseprotected com.icegreen.greenmail.util.GreenMail getServers()
public Object getValidMessage() throws Exception
getValidMessage
in class AbstractConnectorTestCase
Exception
public String getTestEndpointURI()
getTestEndpointURI
in class AbstractConnectorTestCase
protected boolean transformInboundMessage()
protected void assertMessageOk(Object mailMessage) throws Exception
Exception
protected String uniqueName(String root)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |