com.google.gwt.junit.server
Class JUnitHostImpl
java.lang.Object
HttpServlet
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
com.google.gwt.rpc.server.RpcServlet
com.google.gwt.user.server.rpc.HybridServiceServlet
com.google.gwt.junit.server.JUnitHostImpl
- All Implemented Interfaces:
- JUnitHost, RemoteService, SerializationPolicyProvider
public class JUnitHostImpl
- extends HybridServiceServlet
- implements JUnitHost
An RPC servlet that serves as a proxy to JUnitTestShell. Enables
communication between the unit test code running in a browser and the real
test process.
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JUnitHostImpl
public JUnitHostImpl()
getTestBlock
public JUnitHost.InitialResponse getTestBlock(int blockIndex,
JUnitHost.ClientInfo clientInfo)
throws TimeoutException
- Description copied from interface:
JUnitHost
- Gets a specific block of tests to run.
- Specified by:
getTestBlock in interface JUnitHost
- Parameters:
blockIndex - the index of the test block to retrieveclientInfo - the info for this client
- Returns:
- the initial response
- Throws:
TimeoutException - if the wait for the next method times out.
reportResultsAndGetTestBlock
public JUnitHost.TestBlock reportResultsAndGetTestBlock(java.util.HashMap<JUnitHost.TestInfo,JUnitResult> results,
int testBlock,
JUnitHost.ClientInfo clientInfo)
throws TimeoutException
- Description copied from interface:
JUnitHost
- Reports results for the last method run and gets the name of next method to
run.
- Specified by:
reportResultsAndGetTestBlock in interface JUnitHost
- Parameters:
results - the results of executing the testtestBlock - the index of the test block to retrieveclientInfo - the info for this client
- Returns:
- the next test block
- Throws:
TimeoutException - if the wait for the next method times out.