@Test public void testOverrideProperty() throws Exception { Properties props = new Properties(); final String expPropValue = "overriddenValue"; props.put(TEST_DEFAULT_PROPERTY_NAME, expPropValue); createConfigFile(props, proarcCfg); AppConfiguration pconfig = factory.create(new HashMap<String, String>() {{ put(AppConfiguration.PROPERTY_APP_HOME, confHome.toString()); }}); Configuration config = pconfig.getConfiguration(); assertEquals(expPropValue, config.getString(TEST_DEFAULT_PROPERTY_NAME)); }
Configuration getConfiguration() { return config; }
AppConfiguration { Configuration getConfiguration() { return config; } }
AppConfiguration { Configuration getConfiguration() { return config; } AppConfiguration(Map<String, String> environment); }
AppConfiguration { Configuration getConfiguration() { return config; } AppConfiguration(Map<String, String> environment); File getDefaultUsersHome(); String getFedoraUsername(); String getFedoraPassword(); String getFedoraUrl(); Catalogs getCatalogs(); File getConfigHome(); Profiles getProfiles(); Configuration getJobCofig(); ImportProfile getImportConfiguration(ConfigurationProfile cp); ImportProfile getImportConfiguration(); Kramerius4ExportOptions getKramerius4Export(); NdkExportOptions getNdkExportOptions(); SearchOptions getSearchOptions(); String getRules(); ExportOptions getExportOptions(); WorkflowOptions getWorkflowOptions(); Configuration getAuthenticators(); DesaServices getDesaServices(); UrnNbnConfiguration getUrnNbnConfiguration(); String[] getPlugins(); File getWorkflowConfiguration(); void copyConfigTemplate(File configHome); }
AppConfiguration { Configuration getConfiguration() { return config; } AppConfiguration(Map<String, String> environment); File getDefaultUsersHome(); String getFedoraUsername(); String getFedoraPassword(); String getFedoraUrl(); Catalogs getCatalogs(); File getConfigHome(); Profiles getProfiles(); Configuration getJobCofig(); ImportProfile getImportConfiguration(ConfigurationProfile cp); ImportProfile getImportConfiguration(); Kramerius4ExportOptions getKramerius4Export(); NdkExportOptions getNdkExportOptions(); SearchOptions getSearchOptions(); String getRules(); ExportOptions getExportOptions(); WorkflowOptions getWorkflowOptions(); Configuration getAuthenticators(); DesaServices getDesaServices(); UrnNbnConfiguration getUrnNbnConfiguration(); String[] getPlugins(); File getWorkflowConfiguration(); void copyConfigTemplate(File configHome); static final String PROPERTY_USER_HOME; static final String ENV_APP_HOME; static final String DEFAULT_APP_HOME_NAME; static final String CONFIG_FILE_NAME; static final String VERSION; static final String PROPERTY_APP_HOME; }