public interface HostSystem extends SessionFactory
Host system under test.
This interface encapsulates the interaction between the server under test and the test framework. MPT can be used to test components without the need to serve the protocol though a socket by creating a suitable implementation of this interface.
Modifier and Type | Method and Description |
---|---|
boolean |
addUser(String user,
String password)
Add a user for testing.
|
void |
afterTest() |
void |
afterTests() |
void |
beforeTest() |
void |
beforeTests() |
Session |
newSession(Continuation continuation)
Creates a new session for functional testing.
|
boolean addUser(String user, String password) throws Exception
user
- user namepassword
- user passwordException
Session newSession(Continuation continuation) throws Exception
newSession
in interface SessionFactory
Session
, not nullException
void beforeTests() throws Exception
Exception
void afterTests() throws Exception
Exception
void beforeTest() throws Exception
Exception
Copyright © 2008-2017 The Apache Software Foundation. All Rights Reserved.