public class JUnitMessageQueue extends Object
JUnitShell
and
JUnitHostImpl
in a thread-safe manner.
The public methods are called by the servlet to find out what test to execute next, and to report the results of the last test to run.
The protected methods are called by the shell to fetch test results and drive the next test the client should run.
Modifier and Type | Class and Description |
---|---|
static class |
JUnitMessageQueue.ClientInfoExt
Server-side client info that includes a description.
|
static class |
JUnitMessageQueue.ClientStatus
Holds the state of an individual client.
|
Modifier and Type | Method and Description |
---|---|
JUnitHost.TestBlock |
getTestBlock(JUnitMessageQueue.ClientInfoExt clientInfo,
int blockIndex,
long timeout)
Called by the servlet to query for for the next block to test.
|
void |
reportFatalLaunch(JUnitMessageQueue.ClientInfoExt clientInfo,
JUnitResult result)
Reports a failure from a client that cannot startup.
|
void |
reportResults(JUnitMessageQueue.ClientInfoExt clientInfo,
Map<JUnitHost.TestInfo,JUnitResult> results)
Called by the servlet to report the results of the last test to run.
|
public JUnitHost.TestBlock getTestBlock(JUnitMessageQueue.ClientInfoExt clientInfo, int blockIndex, long timeout) throws TimeoutException
clientInfo
- information about the clientblockIndex
- the index of the test block to gettimeout
- how long to wait for an answernull
if
timeout
is exceeded or the next test does not match
testClassName
TimeoutException
public void reportFatalLaunch(JUnitMessageQueue.ClientInfoExt clientInfo, JUnitResult result)
clientInfo
- information about the clientresult
- the failure resultpublic void reportResults(JUnitMessageQueue.ClientInfoExt clientInfo, Map<JUnitHost.TestInfo,JUnitResult> results)
clientInfo
- information about the clientresults
- the result of running the test blockCopyright © 2016. All rights reserved.