A B C D E G H I M N O P R S T U W

A

AbstractProtocolTestFramework - Class in org.apache.james.mpt
Abstract Protocol Test is the root of all of the scripted test cases.
AbstractProtocolTestFramework(HostSystem, String, String) - Constructor for class org.apache.james.mpt.AbstractProtocolTestFramework
 
AbstractSimpleScriptedTestProtocol - Class in org.apache.james.mpt
A Protocol test which reads the test protocol session from a file.
AbstractSimpleScriptedTestProtocol(HostSystem, String, String) - Constructor for class org.apache.james.mpt.AbstractSimpleScriptedTestProtocol
Constructs a scripted test.
add(ResourceCollection) - Method in class org.apache.james.mpt.ant.MailProtocolTestTask
 
addProtocolLines(String, InputStream, ProtocolInteractor) - Method in class org.apache.james.mpt.ProtocolSessionBuilder
Reads ProtocolElements from the supplied InputStream and adds them to the ProtocolSession.
addProtocolLines(String, Reader, ProtocolInteractor) - Method in class org.apache.james.mpt.ProtocolSessionBuilder
Reads ProtocolElements from the supplied Reader and adds them to the ProtocolSession.
address - Variable in class org.apache.james.mpt.ExternalSessionFactory
 
addTestFile(String, ProtocolInteractor) - Method in class org.apache.james.mpt.AbstractSimpleScriptedTestProtocol
Finds the protocol session file identified by the test name, and builds protocol elements from it.
addTestFile(String, ProtocolInteractor) - Method in class org.apache.james.mpt.ProtocolSessionBuilder
Adds all protocol elements from a test file to the ProtocolSession supplied.
addText(String) - Method in class org.apache.james.mpt.ant.MailProtocolTestTask.AddUser
Sets user addition script.
addUser(String, String) - Method in class org.apache.james.mpt.ExternalHostSystem
 
addUser(String, String) - Method in interface org.apache.james.mpt.HostSystem
Add a user for testing.
addUser(String, String) - Method in class org.apache.james.mpt.ScriptedUserAdder
Adds a user using the script read from the given input.
addUser(String, String, Reader) - Method in class org.apache.james.mpt.ScriptedUserAdder
Adds a user using the script read from the given input.
addUser(String, String) - Method in interface org.apache.james.mpt.UserAdder
Adds a user.

B

buildProtocolSession(String) - Method in class org.apache.james.mpt.ProtocolSessionBuilder
Builds a ProtocolSession by reading lines from the test file with the supplied name.
buildProtocolSession(String, Reader) - Method in class org.apache.james.mpt.ProtocolSessionBuilder
Builds a ProtocolSession by reading lines from the reader.

C

CL(String) - Method in interface org.apache.james.mpt.ProtocolInteractor
adds a new Client request line to the test elements
CL(int, String) - Method in interface org.apache.james.mpt.ProtocolInteractor
adds a new Client request line to the test elements
CL(String) - Method in class org.apache.james.mpt.ProtocolSession
 
CL(int, String) - Method in class org.apache.james.mpt.ProtocolSession
 
CLIENT_TAG - Static variable in class org.apache.james.mpt.ProtocolSessionBuilder
 
CLOSE_UNORDERED_BLOCK_TAG - Static variable in class org.apache.james.mpt.ProtocolSessionBuilder
 
COMMENT_TAG - Static variable in class org.apache.james.mpt.ProtocolSessionBuilder
 
CONT(int) - Method in interface org.apache.james.mpt.ProtocolInteractor
Adds a continuation.
CONT(int) - Method in class org.apache.james.mpt.ProtocolSession
 
continueAfterFailure() - Method in class org.apache.james.mpt.AbstractProtocolTestFramework
 
continueAfterFailure() - Method in class org.apache.james.mpt.Runner
 
createAddUser() - Method in class org.apache.james.mpt.ant.MailProtocolTestTask
 

D

debug(char) - Method in class org.apache.james.mpt.ant.MailProtocolTestTask
 
debug(String) - Method in class org.apache.james.mpt.ant.MailProtocolTestTask
 
debug(char) - Method in interface org.apache.james.mpt.Monitor
 
debug(String) - Method in interface org.apache.james.mpt.Monitor
 
debug(char) - Method in class org.apache.james.mpt.NullMonitor
 
debug(String) - Method in class org.apache.james.mpt.NullMonitor
 
debug(char) - Method in class org.apache.james.mpt.SystemLoggingMonitor
 
debug(String) - Method in class org.apache.james.mpt.SystemLoggingMonitor
 
doContinue() - Method in interface org.apache.james.mpt.HostSystem.Continuation
 
doContinue() - Method in class org.apache.james.mpt.ProtocolSession
 

E

execute() - Method in class org.apache.james.mpt.ant.MailProtocolTestTask
 
ExternalHostSystem - Class in org.apache.james.mpt
Connects to a host system serving on an open port.
ExternalHostSystem(String, int, Monitor, String, UserAdder) - Constructor for class org.apache.james.mpt.ExternalHostSystem
Constructs a host system suitable for connection to an open port.
ExternalSessionFactory - Class in org.apache.james.mpt
Session factory creates session which connection to a server port.
ExternalSessionFactory(String, int, Monitor, String) - Constructor for class org.apache.james.mpt.ExternalSessionFactory
 

G

getErrorProperty() - Method in class org.apache.james.mpt.ant.MailProtocolTestTask
Gets the error property.
getHost() - Method in class org.apache.james.mpt.ant.MailProtocolTestTask
Gets the host (either name or number) against which this test will run.
getPasswd() - Method in class org.apache.james.mpt.ant.MailProtocolTestTask.AddUser
Gets the password for the user.
getPort() - Method in class org.apache.james.mpt.ant.MailProtocolTestTask.AddUser
Gets the port against which the user addition script should be executed.
getPort() - Method in class org.apache.james.mpt.ant.MailProtocolTestTask
Gets the port against which this test will run.
getPostElements() - Method in class org.apache.james.mpt.Runner
Gets protocol session run after test.
getPreElements() - Method in class org.apache.james.mpt.Runner
Gets protocol session run before test.
getScript() - Method in class org.apache.james.mpt.ant.MailProtocolTestTask.AddUser
Gets the file containing the user creation script.
getScript() - Method in class org.apache.james.mpt.ant.MailProtocolTestTask
Gets the script to execute.
getSessionCount() - Method in class org.apache.james.mpt.ProtocolSession
Returns the number of sessions required to run this ProtocolSession.
getShabang() - Method in class org.apache.james.mpt.ant.MailProtocolTestTask
Gets script shabang.
getTestElements() - Method in class org.apache.james.mpt.Runner
Gets protocol session run on test.
getUser() - Method in class org.apache.james.mpt.ant.MailProtocolTestTask.AddUser
Gets the name of the user to be created.

H

HostSystem - Interface in org.apache.james.mpt
Host system under test.
HostSystem.Continuation - Interface in org.apache.james.mpt
 

I

IMAP_SHABANG - Static variable in class org.apache.james.mpt.ExternalSessionFactory
 
InvalidServerResponseException - Exception in org.apache.james.mpt
An exception which is thrown when the actual response from a server is different from that expected.
InvalidServerResponseException(String) - Constructor for exception org.apache.james.mpt.InvalidServerResponseException
 
isContinueAfterFailure() - Method in class org.apache.james.mpt.ProtocolSession
 
isQuiet() - Method in class org.apache.james.mpt.ant.MailProtocolTestTask
Should progress output be suppressed?
isSkip() - Method in class org.apache.james.mpt.ant.MailProtocolTestTask
Should the execution be skipped?
isVerbose() - Method in class org.apache.james.mpt.SystemLoggingMonitor
 

M

MailProtocolTestTask - Class in org.apache.james.mpt.ant
Task executes MPT scripts against a server running on a given port and host.
MailProtocolTestTask() - Constructor for class org.apache.james.mpt.ant.MailProtocolTestTask
 
MailProtocolTestTask.AddUser - Class in org.apache.james.mpt.ant
Adds a user.
MailProtocolTestTask.AddUser() - Constructor for class org.apache.james.mpt.ant.MailProtocolTestTask.AddUser
 
Main - Class in org.apache.james.mpt.app
Runs MPT application.
Main() - Constructor for class org.apache.james.mpt.app.Main
 
main(String[]) - Static method in class org.apache.james.mpt.app.Main
 
monitor - Variable in class org.apache.james.mpt.ExternalSessionFactory
 
Monitor - Interface in org.apache.james.mpt
Monitors the conduct of a process.

N

newSession(HostSystem.Continuation) - Method in class org.apache.james.mpt.ExternalSessionFactory
 
newSession(HostSystem.Continuation) - Method in interface org.apache.james.mpt.SessionFactory
Creates a new session for functional testing.
note(String) - Method in class org.apache.james.mpt.ant.MailProtocolTestTask
 
note(String) - Method in interface org.apache.james.mpt.Monitor
 
note(String) - Method in class org.apache.james.mpt.NullMonitor
 
note(String) - Method in class org.apache.james.mpt.SystemLoggingMonitor
 
NullMonitor - Class in org.apache.james.mpt
Discards all monitored messages.
NullMonitor() - Constructor for class org.apache.james.mpt.NullMonitor
 

O

OPEN_UNORDERED_BLOCK_TAG - Static variable in class org.apache.james.mpt.ProtocolSessionBuilder
 
org.apache.james.mpt - package org.apache.james.mpt
 
org.apache.james.mpt.ant - package org.apache.james.mpt.ant
 
org.apache.james.mpt.app - package org.apache.james.mpt.app
 

P

ProtocolInteractor - Interface in org.apache.james.mpt
Scripts a protocol interaction.
ProtocolSession - Class in org.apache.james.mpt
A protocol session which can be run against a reader and writer, which checks the server response against the expected values.
ProtocolSession() - Constructor for class org.apache.james.mpt.ProtocolSession
 
ProtocolSessionBuilder - Class in org.apache.james.mpt
A builder which generates scripts from textual input.
ProtocolSessionBuilder() - Constructor for class org.apache.james.mpt.ProtocolSessionBuilder
 

R

readLine() - Method in interface org.apache.james.mpt.Session
Reads a line from the session input, blocking until a new line is available.
reset() - Method in class org.apache.james.mpt.ExternalSessionFactory
 
reset() - Method in interface org.apache.james.mpt.HostSystem
Resets host system to initial state.
runner - Variable in class org.apache.james.mpt.AbstractProtocolTestFramework
 
Runner - Class in org.apache.james.mpt
Runs protocol scripts.
Runner() - Constructor for class org.apache.james.mpt.Runner
 
runSessions() - Method in class org.apache.james.mpt.AbstractProtocolTestFramework
Runs the pre,test and post protocol sessions against a local copy of the Server.
runSessions(Session[]) - Method in class org.apache.james.mpt.ProtocolSession
Executes the ProtocolSession in real time against the readers and writers supplied, writing client requests and reading server responses in the order that they appear in the test elements.
runSessions(SessionFactory) - Method in class org.apache.james.mpt.Runner
Runs the pre,test and post protocol sessions against a local copy of the server.

S

ScriptedUserAdder - Class in org.apache.james.mpt
Adds a user by executing a script at a port.
ScriptedUserAdder(String, int) - Constructor for class org.apache.james.mpt.ScriptedUserAdder
Constructs an adder without a script.
ScriptedUserAdder(String, int, String) - Constructor for class org.apache.james.mpt.ScriptedUserAdder
 
ScriptedUserAdder(String, int, Monitor) - Constructor for class org.apache.james.mpt.ScriptedUserAdder
Note that ScriptedUserAdder.addUser(String, String) will not be available
ScriptedUserAdder(String, int, String, Monitor) - Constructor for class org.apache.james.mpt.ScriptedUserAdder
 
scriptTest(String, Locale) - Method in class org.apache.james.mpt.AbstractSimpleScriptedTestProtocol
Reads test elements from the protocol session file and adds them to the ProtocolSession.
SERVER_CONTINUATION_TAG - Static variable in class org.apache.james.mpt.ProtocolSessionBuilder
 
SERVER_TAG - Static variable in class org.apache.james.mpt.ProtocolSessionBuilder
 
Session - Interface in org.apache.james.mpt
A connection to the host.
SESSION_TAG - Static variable in class org.apache.james.mpt.ProtocolSessionBuilder
 
SessionFactory - Interface in org.apache.james.mpt
Builds sessions for protocol testing.
setContinueAfterFailure(boolean) - Method in class org.apache.james.mpt.ProtocolSession
 
setErrorProperty(String) - Method in class org.apache.james.mpt.ant.MailProtocolTestTask
Sets the error property.
setHost(String) - Method in class org.apache.james.mpt.ant.MailProtocolTestTask
Sets the host (either name or number) against which this test will run.
setPasswd(String) - Method in class org.apache.james.mpt.ant.MailProtocolTestTask.AddUser
Sets the password for the user.
setPort(int) - Method in class org.apache.james.mpt.ant.MailProtocolTestTask.AddUser
Sets the port against which the user addition script should be executed.
setPort(int) - Method in class org.apache.james.mpt.ant.MailProtocolTestTask
Sets the port aginst which this test will run.
setQuiet(boolean) - Method in class org.apache.james.mpt.ant.MailProtocolTestTask
Sets whether progress output should be suppressed/
setScript(File) - Method in class org.apache.james.mpt.ant.MailProtocolTestTask.AddUser
Sets the file containing the user creation script.
setScript(File) - Method in class org.apache.james.mpt.ant.MailProtocolTestTask
Sets the script to execute.
setShabang(String) - Method in class org.apache.james.mpt.ant.MailProtocolTestTask
Sets the script shabang.
setSkip(boolean) - Method in class org.apache.james.mpt.ant.MailProtocolTestTask
Sets execution skipping.
setUp() - Method in class org.apache.james.mpt.AbstractProtocolTestFramework
 
setUser(String) - Method in class org.apache.james.mpt.ant.MailProtocolTestTask.AddUser
Sets the name of the user to be created.
setVariable(String, String) - Method in class org.apache.james.mpt.ProtocolSessionBuilder
Sets a substitution varaible.
setVerbose(boolean) - Method in class org.apache.james.mpt.SystemLoggingMonitor
 
shabang - Variable in class org.apache.james.mpt.ExternalSessionFactory
 
SL(String, String) - Method in interface org.apache.james.mpt.ProtocolInteractor
adds a new Server Response line to the test elements, with the specified location.
SL(int, String, String, String) - Method in interface org.apache.james.mpt.ProtocolInteractor
adds a new Server Response line to the test elements, with the specified location.
SL(String, String) - Method in class org.apache.james.mpt.ProtocolSession
 
SL(int, String, String, String) - Method in class org.apache.james.mpt.ProtocolSession
 
start() - Method in interface org.apache.james.mpt.Session
Opens the session.
stop() - Method in interface org.apache.james.mpt.Session
Closes the session.
SUB(List<String>, String) - Method in interface org.apache.james.mpt.ProtocolInteractor
adds a new Server Unordered Block to the test elements.
SUB(int, List<String>, String, String) - Method in interface org.apache.james.mpt.ProtocolInteractor
adds a new Server Unordered Block to the test elements.
SUB(List<String>, String) - Method in class org.apache.james.mpt.ProtocolSession
 
SUB(int, List<String>, String, String) - Method in class org.apache.james.mpt.ProtocolSession
 
SystemLoggingMonitor - Class in org.apache.james.mpt
Feeds monitored information to System.out.
SystemLoggingMonitor() - Constructor for class org.apache.james.mpt.SystemLoggingMonitor
 
SystemLoggingMonitor(boolean) - Constructor for class org.apache.james.mpt.SystemLoggingMonitor
 

T

tearDown() - Method in class org.apache.james.mpt.AbstractSimpleScriptedTestProtocol
 
testElements - Variable in class org.apache.james.mpt.ProtocolSession
 
toString() - Method in class org.apache.james.mpt.ExternalSessionFactory
Constructs a String with all attributes in name = value format.
toString() - Method in class org.apache.james.mpt.ProtocolSession
Constructs a String with all attributes in name = value format.
toString() - Method in class org.apache.james.mpt.Runner
Constructs a String with all attributes in name = value format.
toString() - Method in class org.apache.james.mpt.ScriptedUserAdder
Constructs a String with all attributes in name = value format.

U

UserAdder - Interface in org.apache.james.mpt
Adds users on demand.

W

writeLine(String) - Method in interface org.apache.james.mpt.Session
Writes a line to the session output.

A B C D E G H I M N O P R S T U W

Copyright © 2008-2009 The Apache Software Foundation. All Rights Reserved.