public interface

JUnitHost

implements RemoteService
com.google.gwt.junit.client.impl.JUnitHost
Known Indirect Subclasses

Class Overview

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

Summary

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

Public Methods

public abstract JUnitHost.InitialResponse getTestBlock (int blockIndex, JUnitHost.ClientInfo clientInfo)

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.

public abstract JUnitHost.TestBlock reportResultsAndGetTestBlock (HashMap<JUnitHost.TestInfoJUnitResult> results, int blockIndex, JUnitHost.ClientInfo clientInfo)

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.