@Test public void testExceptionWhenCurrentDirectoryIsNotRealDirectory() throws IOException { File cwd = new File( basedir, "cwd.txt" ); FileUtils.touch( cwd ); try { ForkConfiguration config = getForkConfiguration( cwd.getCanonicalFile() ); config.createCommandLine( STARTUP_CONFIG, 1, temporaryFolder() ); } catch ( SurefireBooterForkException e ) { String absolutePath = cwd.getCanonicalPath(); assertEquals( "WorkingDirectory " + absolutePath + " exists and is not a directory", e.getMessage() ); return; } finally { assertTrue( cwd.delete() ); } 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 );  }