@Test( expected = NullPointerException.class ) public void shouldFailOnNPE() { String cwd = System.getProperty( "user.dir" ); File target = new File( cwd, "target" ); DefaultReporterFactory factory = mock( DefaultReporterFactory.class ); when( factory.getReportsDirectory() ) .thenReturn( new File( target, "surefire-reports" ) ); ForkClient client = new ForkClient( factory, null, 0 ); client.handleEvent( null ); }
@Override public final void handleEvent( @Nonnull Event event ) { notifier.notifyEvent( event ); }
ForkClient implements EventHandler<Event> { @Override public final void handleEvent( @Nonnull Event event ) { notifier.notifyEvent( event ); } }
ForkClient implements EventHandler<Event> { @Override public final void handleEvent( @Nonnull Event event ) { notifier.notifyEvent( event ); } ForkClient( DefaultReporterFactory defaultReporterFactory, NotifiableTestStream notifiableTestStream,
                       int forkNumber ); }
ForkClient implements EventHandler<Event> { @Override public final void handleEvent( @Nonnull Event event ) { notifier.notifyEvent( event ); } 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> { @Override public final void handleEvent( @Nonnull Event event ) { notifier.notifyEvent( event ); } 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();  }