Package | Description |
---|---|
org.apache.james.mpt | |
org.apache.james.mpt.protocol |
Modifier and Type | Method and Description |
---|---|
ProtocolInteractor |
Runner.getPostElements()
Gets protocol session run after test.
|
ProtocolInteractor |
Runner.getPreElements()
Gets protocol session run before test.
|
ProtocolInteractor |
Runner.getTestElements()
Gets protocol session run on test.
|
Modifier and Type | Class and Description |
---|---|
class |
ProtocolSession
A protocol session which can be run against a reader and writer, which checks
the server response against the expected values.
|
Modifier and Type | Method and Description |
---|---|
ProtocolInteractor |
ProtocolSessionBuilder.buildProtocolSession(String fileName)
Builds a ProtocolSession by reading lines from the test file with the
supplied name.
|
ProtocolInteractor |
ProtocolSessionBuilder.buildProtocolSession(String scriptName,
Reader reader)
Builds a ProtocolSession by reading lines from the reader.
|
Modifier and Type | Method and Description |
---|---|
void |
ProtocolSessionBuilder.addProtocolLines(String scriptName,
InputStream is,
ProtocolInteractor session)
Reads ProtocolElements from the supplied InputStream and adds them to the
ProtocolSession.
|
void |
ProtocolSessionBuilder.addProtocolLines(String scriptName,
Reader reader,
ProtocolInteractor session)
Reads ProtocolElements from the supplied Reader and adds them to the
ProtocolSession.
|
void |
ProtocolSessionBuilder.addTestFile(String fileName,
ProtocolInteractor session)
Adds all protocol elements from a test file to the ProtocolSession
supplied.
|
Copyright © 2008-2017 The Apache Software Foundation. All Rights Reserved.