org.apache.james.mpt
Interface HostSystem

All Superinterfaces:
SessionFactory
All Known Implementing Classes:
ExternalHostSystem

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.

See Also:
ExternalHostSystem (a HostSystem for servers running independently), Session (supports multiple connection to the host system)

Nested Class Summary
static interface HostSystem.Continuation
           
 
Method Summary
 void addUser(java.lang.String user, java.lang.String password)
          Add a user for testing.
 void reset()
          Resets host system to initial state.
 
Methods inherited from interface org.apache.james.mpt.SessionFactory
newSession
 

Method Detail

reset

void reset()
           throws java.lang.Exception
Resets host system to initial state.

Throws:
java.lang.Exception

addUser

void addUser(java.lang.String user,
             java.lang.String password)
             throws java.lang.Exception
Add a user for testing.

Parameters:
user - user name
password - user password
Throws:
java.lang.Exception


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