Jetif v1.8.0

jetif
Interface Proxy

All Known Implementing Classes:
SocketProxy

public interface Proxy

The Proxy stands for remote testing. A proxy is used to transmit test data and result between test JVM (where Jetif running) and application JVM (where application be tested running). There are two parts of the proxy: the proxy and proxy agent. The proxy should handle request from framework and send the request to proxy agent, then the proxy agent will invoke the tests inside application JVM.
The proxy is intended for server-side testing, like the Cactus for JUnit.
A custom proxy should implements this interface to receive request from framework.

Author:
Vicky Wang
See Also:
ProxyAgent

Method Summary
 void close()
          Close the remote proxy agent when a suite is completed.
 void open(Properties props, Serializable data)
          Bind the remote proxy agent at the beginning of a suite.
 Object runCase(Serializable data)
          Run a test case with specified input data.
 

Method Detail

open

public void open(Properties props,
                 Serializable data)
          throws FrameworkException
Bind the remote proxy agent at the beginning of a suite.

Parameters:
props - The properties object of this suite.
data - The data should be transmitted to remote proxy agent.
Throws:
FrameworkException - if errors occurs try to bind proxy agent.

runCase

public Object runCase(Serializable data)
               throws FrameworkException
Run a test case with specified input data.

Parameters:
data - the data should be transmitted to remote proxy agent.
Returns:
the result from remote proxy agent.
Throws:
FrameworkException - if error occurs during testing.

close

public void close()
           throws FrameworkException
Close the remote proxy agent when a suite is completed.

Throws:
FrameworkException

Jetif v1.8.0

Copyright © 2004,2005 Vicky Wang - All Rights Reserved.