|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase org.apache.james.mpt.AbstractProtocolTestFramework
public abstract class AbstractProtocolTestFramework
Abstract Protocol Test is the root of all of the scripted 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 Runner |
runner
|
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 Server. |
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 final Runner runner
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
Runs the pre,test and post protocol sessions against a local copy of the Server. This is useful for rapid development and debugging.
Instead of sending requests to a socket connected to a running instance of James, this method uses theHostSystem
to simplify
testing. One mock instance is required per protocol session/connection.
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |