public class

JUnitHostImpl

extends HybridServiceServlet
implements JUnitHost
java.lang.Object
   ↳ javax.servlet.GenericServlet
     ↳ javax.servlet.http.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

Class Overview

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.

Summary

[Expand]
Inherited Constants
From class com.google.gwt.rpc.server.RpcServlet
[Expand]
Inherited Fields
From class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
Public Constructors
JUnitHostImpl()
Public Methods
JUnitHost.InitialResponse getTestBlock(int blockIndex, JUnitHost.ClientInfo clientInfo)
Gets a specific block of tests to run.
JUnitHost.TestBlock reportResultsAndGetTestBlock(HashMap<JUnitHost.TestInfoJUnitResult> results, int testBlock, JUnitHost.ClientInfo clientInfo)
Reports results for the last method run and gets the name of next method to run.
Protected Methods
void service(HttpServletRequest request, HttpServletResponse response)
[Expand]
Inherited Methods
From class com.google.gwt.user.server.rpc.HybridServiceServlet
From class com.google.gwt.rpc.server.RpcServlet
From class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
From class javax.servlet.http.HttpServlet
From class javax.servlet.GenericServlet
From class java.lang.Object
From interface com.google.gwt.junit.client.impl.JUnitHost
From interface com.google.gwt.user.server.rpc.SerializationPolicyProvider
From interface javax.servlet.Servlet
From interface javax.servlet.ServletConfig

Public Constructors

public JUnitHostImpl ()

Public Methods

public 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

public JUnitHost.TestBlock reportResultsAndGetTestBlock (HashMap<JUnitHost.TestInfoJUnitResult> results, int testBlock, 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
testBlock the index of the test block to retrieve
clientInfo the info for this client
Returns
  • the next test block

Protected Methods

protected void service (HttpServletRequest request, HttpServletResponse response)

Throws
ServletException
IOException