com.google.gwt.junit.client.impl
Interface JUnitHost

All Superinterfaces:
RemoteService
All Known Implementing Classes:
JUnitHostImpl

public interface JUnitHost
extends RemoteService

An interface for GWTTestCase to communicate with the test process through RPC.


Nested Class Summary
static class JUnitHost.ClientInfo
          Information about the client browser.
static class JUnitHost.InitialResponse
          An initial response that sets the client session id.
static class JUnitHost.TestBlock
          Returned from the server to tell the system what test to run next.
static class JUnitHost.TestInfo
          Returned from the server to tell the system what test to run next.
 
Method Summary
 JUnitHost.InitialResponse getTestBlock(int blockIndex, JUnitHost.ClientInfo clientInfo)
          Gets a specific block of tests to run.
 JUnitHost.TestBlock reportResultsAndGetTestBlock(java.util.HashMap<JUnitHost.TestInfo,JUnitResult> results, int blockIndex, JUnitHost.ClientInfo clientInfo)
          Reports results for the last method run and gets the name of next method to run.
 

Method Detail

getTestBlock

JUnitHost.InitialResponse getTestBlock(int blockIndex,
                                       JUnitHost.ClientInfo clientInfo)
                                       throws TimeoutException
Gets a specific block of tests to run.

Parameters:
blockIndex - the index of the test block to retrieve
clientInfo - the info for this client
Returns:
the initial response
Throws:
TimeoutException - if the wait for the next method times out.

reportResultsAndGetTestBlock

JUnitHost.TestBlock reportResultsAndGetTestBlock(java.util.HashMap<JUnitHost.TestInfo,JUnitResult> results,
                                                 int blockIndex,
                                                 JUnitHost.ClientInfo clientInfo)
                                                 throws TimeoutException
Reports results for the last method run and gets the name of next method to run.

Parameters:
results - the results of executing the test
blockIndex - the index of the test block to retrieve
clientInfo - the info for this client
Returns:
the next test block
Throws:
TimeoutException - if the wait for the next method times out.