GlobalAntExecutor { public String generateFullTemporaryDir(final String generatorBuilderPath, final String temporaryDir) throws APIRestGeneratorException { final String fullTemporaryDir = generatorBuilderPath + File.separator + ConstantsAnt.BASE_GEN_FOLDERS + temporaryDir ; FilesUtility.createFullDirectoryTree(fullTemporaryDir); return fullTemporaryDir; } GlobalAntExecutor(final String parserType, final String translatorType); void launchAntExecutor(final String generatorBuilderPath,
                                  final String fileName,
                                  final String deliverableFileName,
                                  final String temporaryDir,
                                  final PrintStream errorStreamWrapper,
                                  final PrintStream outputStreamWrapper); String generateTemporaryOutputDirectory(final String generatorBuilderPath); String generateFullTemporaryDir(final String generatorBuilderPath, final String temporaryDir); void removeFullTemporaryDirectory(final String fullTemporaryDir); void validateFileExtension(final String fileName); String getDeliverableFileName(final String fileName, final String translatorType);  }
@Test public void generateFullTemporaryDirTest() throws APIRestGeneratorException { final GlobalAntExecutor globalAntExecutor = new GlobalAntExecutor(ConstantsTest.PARSER_TYPE, ConstantsTest.TRANSLATOR_TYPE) ; globalAntExecutor.generateFullTemporaryDir(ConstantsTest.GENERATOR_BUILDER_PATH, ConstantsTest.TEMPORARY_DIR) ; }