public final class ForkClient extends Object implements EventHandler<Event>
Constructor and Description |
---|
ForkClient(DefaultReporterFactory defaultReporterFactory,
NotifiableTestStream notifiableTestStream,
int forkNumber) |
Modifier and Type | Method and Description |
---|---|
void |
close(boolean hadTimeout) |
TestOutputReceiver<TestOutputReportEntry> |
getConsoleOutputReceiver() |
DefaultReporterFactory |
getDefaultReporterFactory() |
StackTraceWriter |
getErrorInFork() |
RunListener |
getReporter()
Used when getting reporters on the plugin side of a fork.
|
Map<String,String> |
getTestVmSystemProperties() |
boolean |
hadTimeout() |
void |
handleEvent(Event event) |
boolean |
hasTestsInProgress() |
boolean |
isErrorInFork() |
boolean |
isSaidGoodBye() |
void |
kill() |
void |
setStopOnNextTestListener(ForkedProcessEventListener listener) |
Set<String> |
testsInProgress() |
void |
tryToTimeout(long currentTimeMillis,
int forkedProcessTimeoutInSeconds)
Called in concurrent Thread.
|
public ForkClient(DefaultReporterFactory defaultReporterFactory, NotifiableTestStream notifiableTestStream, int forkNumber)
public void setStopOnNextTestListener(ForkedProcessEventListener listener)
public void kill()
public void tryToTimeout(long currentTimeMillis, int forkedProcessTimeoutInSeconds)
currentTimeMillis
- current time in millisecondsforkedProcessTimeoutInSeconds
- timeout in seconds given by MOJOpublic DefaultReporterFactory getDefaultReporterFactory()
public void handleEvent(@Nonnull Event event)
handleEvent
in interface EventHandler<Event>
public boolean hadTimeout()
public RunListener getReporter()
public TestOutputReceiver<TestOutputReportEntry> getConsoleOutputReceiver()
public void close(boolean hadTimeout)
public boolean isSaidGoodBye()
public StackTraceWriter getErrorInFork()
public boolean isErrorInFork()
public boolean hasTestsInProgress()
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.