@Test public void shouldBePossibleToKill() { NotifiableTestStream notifiableTestStream = mock( NotifiableTestStream.class ); ForkClient client = new ForkClient( null, notifiableTestStream, 0 ); client.kill(); verify( notifiableTestStream, times( 1 ) ) .shutdown( eq( Shutdown.KILL ) ); }
public void kill() { if ( !saidGoodBye ) { notifiableTestStream.shutdown( KILL ); } }
ForkClient implements EventHandler<Event> { public void kill() { if ( !saidGoodBye ) { notifiableTestStream.shutdown( KILL ); } } }
ForkClient implements EventHandler<Event> { public void kill() { if ( !saidGoodBye ) { notifiableTestStream.shutdown( KILL ); } } ForkClient( DefaultReporterFactory defaultReporterFactory, NotifiableTestStream notifiableTestStream,
                       int forkNumber ); }
ForkClient implements EventHandler<Event> { public void kill() { if ( !saidGoodBye ) { notifiableTestStream.shutdown( KILL ); } } ForkClient( DefaultReporterFactory defaultReporterFactory, NotifiableTestStream notifiableTestStream,
                       int forkNumber ); void kill(); final void tryToTimeout( long currentTimeMillis, int forkedProcessTimeoutInSeconds ); final DefaultReporterFactory getDefaultReporterFactory(); @Override final void handleEvent( @Nonnull Event event ); final boolean hadTimeout(); final Map<String, String> getTestVmSystemProperties(); final RunListener getReporter(); void close( boolean hadTimeout ); final boolean isSaidGoodBye(); final StackTraceWriter getErrorInFork(); final boolean isErrorInFork(); Set<String> testsInProgress(); boolean hasTestsInProgress(); }
ForkClient implements EventHandler<Event> { public void kill() { if ( !saidGoodBye ) { notifiableTestStream.shutdown( KILL ); } } ForkClient( DefaultReporterFactory defaultReporterFactory, NotifiableTestStream notifiableTestStream,
                       int forkNumber ); void kill(); final void tryToTimeout( long currentTimeMillis, int forkedProcessTimeoutInSeconds ); final DefaultReporterFactory getDefaultReporterFactory(); @Override final void handleEvent( @Nonnull Event event ); final boolean hadTimeout(); final Map<String, String> getTestVmSystemProperties(); final RunListener getReporter(); void close( boolean hadTimeout ); final boolean isSaidGoodBye(); final StackTraceWriter getErrorInFork(); final boolean isErrorInFork(); Set<String> testsInProgress(); boolean hasTestsInProgress();  }