|
||||||||||
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.apache.james.test.functional.AbstractProtocolTestFramework
public abstract class AbstractProtocolTestFramework
Abstract Protocol Test is the root of all of the James Imap Server test
cases. It provides basic functionality for running a protocol session as a
JUnit test, and failing if exceptions are thrown. To create a test which
reads the entire protocol session from a single protocol definition file, use
the AbstractSimpleScriptedTestProtocol
.
Field Summary | |
---|---|
protected ProtocolSession |
postElements
The Protocol session which is run after the testElements. |
protected ProtocolSession |
preElements
The Protocol session which is run before the testElements |
protected ProtocolSession |
testElements
The Protocol session which contains the tests elements |
Constructor Summary | |
---|---|
AbstractProtocolTestFramework(HostSystem hostSystem,
java.lang.String userName,
java.lang.String password)
|
Method Summary | |
---|---|
protected void |
continueAfterFailure()
|
protected void |
runSessions()
Runs the pre,test and post protocol sessions against a local copy of the ImapServer. |
protected void |
setUp()
|
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, 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 |
---|
protected ProtocolSession preElements
protected ProtocolSession testElements
protected ProtocolSession postElements
Constructor Detail |
---|
public AbstractProtocolTestFramework(HostSystem hostSystem, java.lang.String userName, java.lang.String password)
Method Detail |
---|
protected void setUp() throws java.lang.Exception
setUp
in class junit.framework.TestCase
java.lang.Exception
protected void continueAfterFailure()
protected void runSessions() throws java.lang.Exception
MockImapServer
to simplify
testing. One mock instance is required per protocol session/connection.
These share the same underlying Mailboxes, because of the way
MockImapServer#getImapSession()
works.
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |