@Test public void createTempOutputDirectoryCreatesDirectoryAndAllItsParents() { compiler.createTempOutputDirectory(); File tempOutputDirectory = compilerInputOutputConfiguration.getTempOutputDirectory(); verify(tempOutputDirectory).mkdirs(); assertTrue(tempOutputDirectory.isDirectory()); assertTrue(tempOutputDirectory.exists()); }
@Override public void createTempOutputDirectory() { configuration.getTempOutputDirectory().mkdirs(); }
JavaccSourceFileCompiler implements SourceFileCompiler { @Override public void createTempOutputDirectory() { configuration.getTempOutputDirectory().mkdirs(); } }
JavaccSourceFileCompiler implements SourceFileCompiler { @Override public void createTempOutputDirectory() { configuration.getTempOutputDirectory().mkdirs(); } JavaccSourceFileCompiler(ProgramInvoker programInvoker, ProgramArguments argumentsProvidedByTask, CompilerInputOutputConfiguration configuration, Logger logger); }
JavaccSourceFileCompiler implements SourceFileCompiler { @Override public void createTempOutputDirectory() { configuration.getTempOutputDirectory().mkdirs(); } JavaccSourceFileCompiler(ProgramInvoker programInvoker, ProgramArguments argumentsProvidedByTask, CompilerInputOutputConfiguration configuration, Logger logger); @Override void compileSourceFilesToTempOutputDirectory(); @Override void copyNonJavaccFilesToOutputDirectory(); @Override void compile(File inputDirectory, RelativePath inputRelativePath); @Override void copyCompiledFilesFromTempOutputDirectoryToOutputDirectory(); @Override String supportedSuffix(); @Override String getProgramName(); @Override File getOutputDirectory(); @Override File getInputDirectory(); @Override void createTempOutputDirectory(); @Override void cleanTempOutputDirectory(); @Override Logger getLogger(); }
JavaccSourceFileCompiler implements SourceFileCompiler { @Override public void createTempOutputDirectory() { configuration.getTempOutputDirectory().mkdirs(); } JavaccSourceFileCompiler(ProgramInvoker programInvoker, ProgramArguments argumentsProvidedByTask, CompilerInputOutputConfiguration configuration, Logger logger); @Override void compileSourceFilesToTempOutputDirectory(); @Override void copyNonJavaccFilesToOutputDirectory(); @Override void compile(File inputDirectory, RelativePath inputRelativePath); @Override void copyCompiledFilesFromTempOutputDirectoryToOutputDirectory(); @Override String supportedSuffix(); @Override String getProgramName(); @Override File getOutputDirectory(); @Override File getInputDirectory(); @Override void createTempOutputDirectory(); @Override void cleanTempOutputDirectory(); @Override Logger getLogger();  }