@Test public void testExceptionWhenCurrentDirectoryCannotBeCreated() throws IOException { File cwd = new File( basedir, "?\u0000InvalidDirectoryName" ); try { ForkConfiguration config = getForkConfiguration( cwd.getAbsoluteFile() ); config.createCommandLine( STARTUP_CONFIG, 1, temporaryFolder() ); } catch ( SurefireBooterForkException sbfe ) { assertEquals( "Cannot create workingDirectory " + cwd.getAbsolutePath(), sbfe.getMessage() ); return; } finally { FileUtils.deleteDirectory( cwd ); } if ( SystemUtils.IS_OS_WINDOWS || isJavaVersionAtLeast7u60() ) { fail(); } }
@Nonnull public abstract OutputStreamFlushableCommandline createCommandLine( @Nonnull StartupConfiguration config, int forkNumber, @Nonnull File dumpLogDirectory ) throws SurefireBooterForkException;
ForkConfiguration { @Nonnull public abstract OutputStreamFlushableCommandline createCommandLine( @Nonnull StartupConfiguration config, int forkNumber, @Nonnull File dumpLogDirectory ) throws SurefireBooterForkException; }
ForkConfiguration { @Nonnull public abstract OutputStreamFlushableCommandline createCommandLine( @Nonnull StartupConfiguration config, int forkNumber, @Nonnull File dumpLogDirectory ) throws SurefireBooterForkException;  }
ForkConfiguration { @Nonnull public abstract OutputStreamFlushableCommandline createCommandLine( @Nonnull StartupConfiguration config, int forkNumber, @Nonnull File dumpLogDirectory ) throws SurefireBooterForkException;  @Nonnull abstract ForkNodeFactory getForkNodeFactory(); @Nonnull abstract File getTempDirectory(); @Nonnull abstract OutputStreamFlushableCommandline createCommandLine( @Nonnull StartupConfiguration config,
                                                                        int forkNumber,
                                                                        @Nonnull File dumpLogDirectory ); }
ForkConfiguration { @Nonnull public abstract OutputStreamFlushableCommandline createCommandLine( @Nonnull StartupConfiguration config, int forkNumber, @Nonnull File dumpLogDirectory ) throws SurefireBooterForkException;  @Nonnull abstract ForkNodeFactory getForkNodeFactory(); @Nonnull abstract File getTempDirectory(); @Nonnull abstract OutputStreamFlushableCommandline createCommandLine( @Nonnull StartupConfiguration config,
                                                                        int forkNumber,
                                                                        @Nonnull File dumpLogDirectory );  }