@Test public void testExampleConfigurationLeavesExistingFileAlone() throws Exception { final File existingFile = tempDir.newFile(); final ConfigurationFileManager subject = getTestJenkinsConfiguration(); subject.initConfiguration(); assertTrue(existingFile.exists()); }
public void initConfiguration() { if (new File(rootDirectoryAsFile, MARKER_FILE_NAME).exists()) { return; } restoreConfiguration(); }
ConfigurationFileManager { public void initConfiguration() { if (new File(rootDirectoryAsFile, MARKER_FILE_NAME).exists()) { return; } restoreConfiguration(); } }
ConfigurationFileManager { public void initConfiguration() { if (new File(rootDirectoryAsFile, MARKER_FILE_NAME).exists()) { return; } restoreConfiguration(); } ConfigurationFileManager();   ConfigurationFileManager(final ConfigurationProvider configurationProvider, final File rootDirectory); }
ConfigurationFileManager { public void initConfiguration() { if (new File(rootDirectoryAsFile, MARKER_FILE_NAME).exists()) { return; } restoreConfiguration(); } ConfigurationFileManager();   ConfigurationFileManager(final ConfigurationProvider configurationProvider, final File rootDirectory); void initConfiguration(); void restoreConfiguration(); void unzipFilesFrom(final FileItem file); void deleteFile(final String path); void saveConfiguration(final String includes, final String excludes); InputStream downloadStoredConfiguration(); File getRootDirectory(); }
ConfigurationFileManager { public void initConfiguration() { if (new File(rootDirectoryAsFile, MARKER_FILE_NAME).exists()) { return; } restoreConfiguration(); } ConfigurationFileManager();   ConfigurationFileManager(final ConfigurationProvider configurationProvider, final File rootDirectory); void initConfiguration(); void restoreConfiguration(); void unzipFilesFrom(final FileItem file); void deleteFile(final String path); void saveConfiguration(final String includes, final String excludes); InputStream downloadStoredConfiguration(); File getRootDirectory();  }