public abstract class AbstractProtocolTestFramework extends Object
AbstractSimpleScriptedTestProtocol
.Modifier and Type | Field and Description |
---|---|
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 Runner |
runner |
protected ProtocolSession |
testElements
The Protocol session which contains the tests elements
|
Constructor and Description |
---|
AbstractProtocolTestFramework(HostSystem hostSystem,
String userName,
String password) |
Modifier and Type | Method and Description |
---|---|
protected void |
runSessions()
Runs the pre,test and post protocol sessions against a local copy of the
Server.
|
protected void |
setUp() |
protected void |
tearDown() |
protected ProtocolSession preElements
protected ProtocolSession testElements
protected ProtocolSession postElements
public AbstractProtocolTestFramework(HostSystem hostSystem, String userName, String password)
protected void runSessions() throws 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.Exception
Copyright © 2008-2017 The Apache Software Foundation. All Rights Reserved.