@Test public void testExampleConfigurationProvidesExampleFiles() throws Exception { final ConfigurationFileManager subject = getTestJenkinsConfiguration(); subject.initConfiguration(); for (final String expectedFileName : new String[] { "example.txt", "example/example.txt", "emptyExample" }) { assertTrue(new File(tempDir.getRoot(), expectedFileName).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();  }