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.
129130131132133134135136137138139140
for (JUnitResult result : results.values()) { initResult(getThreadLocalRequest(), result); ExceptionWrapper ew = result.getExceptionWrapper(); result.setException(deserialize(ew)); } JUnitMessageQueue host = getHost(); ClientInfoExt clientInfoExt = createClientInfo(clientInfo, getThreadLocalRequest()); host.reportResults(clientInfoExt, results); return host.getTestBlock(clientInfoExt, testBlock, TIME_TO_WAIT_FOR_TESTNAME); }
113114115116117118119120121122123124
ClientInfo clientInfo) throws TimeoutException { for (JUnitResult result : results.values()) { initResult(getThreadLocalRequest(), result); resymbolize(result.getException()); } JUnitMessageQueue host = getHost(); ClientInfoExt clientInfoExt = createClientInfo(clientInfo, getThreadLocalRequest()); host.reportResults(clientInfoExt, results); return host.getTestBlock(clientInfoExt, testBlock, TIME_TO_WAIT_FOR_TESTNAME); }