public class JUnitHostImpl extends RemoteServiceServlet implements JUnitHost
JUnitHost.ClientInfo, JUnitHost.InitialResponse, JUnitHost.TestBlock, JUnitHost.TestInfo
perThreadRequest, perThreadResponse
Constructor and Description |
---|
JUnitHostImpl() |
Modifier and Type | Method and Description |
---|---|
JUnitHost.InitialResponse |
getTestBlock(int blockIndex,
JUnitHost.ClientInfo clientInfo)
Gets a specific block of tests to run.
|
JUnitHost.TestBlock |
reportResultsAndGetTestBlock(HashMap<JUnitHost.TestInfo,JUnitResult> results,
int testBlock,
JUnitHost.ClientInfo clientInfo)
Reports results for the last method run and gets the name of next method to
run.
|
protected void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
checkPermutationStrongName, doGetSerializationPolicy, getCodeServerPolicyUrl, getSerializationPolicy, init, loadPolicyFromCodeServer, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processPost, shouldCompressResponse
doPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContent
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service
public JUnitHost.InitialResponse getTestBlock(int blockIndex, JUnitHost.ClientInfo clientInfo) throws TimeoutException
JUnitHost
getTestBlock
in interface JUnitHost
blockIndex
- the index of the test block to retrieveclientInfo
- the info for this clientTimeoutException
- if the wait for the next method times out.public JUnitHost.TestBlock reportResultsAndGetTestBlock(HashMap<JUnitHost.TestInfo,JUnitResult> results, int testBlock, JUnitHost.ClientInfo clientInfo) throws TimeoutException
JUnitHost
reportResultsAndGetTestBlock
in interface JUnitHost
results
- the results of executing the testtestBlock
- the index of the test block to retrieveclientInfo
- the info for this clientTimeoutException
- if the wait for the next method times out.protected void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
service
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
Copyright © 2016. All rights reserved.