@Test public void testSetProperty() throws ConfigurationException { configGenerator = new ConfigurationGenerator(); assertTrue(configGenerator.init()); String oldValue = configGenerator.setProperty("test.prop.key", "test.prop.value"); assertEquals("Wrong old value", null, oldValue); assertEquals("Property not set", "test.prop.value", configGenerator.getUserConfig().getProperty("test.prop.key")); oldValue = configGenerator.setProperty("test.prop.key", null); assertEquals("Wrong old value", "test.prop.value", oldValue); assertEquals("Property not unset", null, configGenerator.getUserConfig().getProperty("test.prop.key")); oldValue = configGenerator.setProperty("test.prop.key", ""); assertEquals("Wrong old value", null, oldValue); assertEquals("Property must not be set", null, configGenerator.getUserConfig().getProperty("test.prop.key")); configGenerator.setProperty("test.prop.key", "test.prop.value"); oldValue = configGenerator.setProperty("test.prop.key", ""); assertEquals("Wrong old value", "test.prop.value", oldValue); assertEquals("Property not unset", null, configGenerator.getUserConfig().getProperty("test.prop.key")); }
public String setProperty(String key, String value) throws ConfigurationException { String oldValue = getStoredConfig().getProperty(key); HashMap<String, String> newParametersToSave = new HashMap<>(); newParametersToSave.put(key, value); saveFilteredConfiguration(newParametersToSave); setBasicConfiguration(); return oldValue; }
ConfigurationGenerator { public String setProperty(String key, String value) throws ConfigurationException { String oldValue = getStoredConfig().getProperty(key); HashMap<String, String> newParametersToSave = new HashMap<>(); newParametersToSave.put(key, value); saveFilteredConfiguration(newParametersToSave); setBasicConfiguration(); return oldValue; } }
ConfigurationGenerator { public String setProperty(String key, String value) throws ConfigurationException { String oldValue = getStoredConfig().getProperty(key); HashMap<String, String> newParametersToSave = new HashMap<>(); newParametersToSave.put(key, value); saveFilteredConfiguration(newParametersToSave); setBasicConfiguration(); return oldValue; } ConfigurationGenerator();  ConfigurationGenerator(boolean quiet, boolean debug); }
ConfigurationGenerator { public String setProperty(String key, String value) throws ConfigurationException { String oldValue = getStoredConfig().getProperty(key); HashMap<String, String> newParametersToSave = new HashMap<>(); newParametersToSave.put(key, value); saveFilteredConfiguration(newParametersToSave); setBasicConfiguration(); return oldValue; } ConfigurationGenerator();  ConfigurationGenerator(boolean quiet, boolean debug); boolean isConfigurable(); void hideDeprecationWarnings(boolean hide); void setForceGeneration(boolean forceGeneration); boolean isForceGeneration(); Properties getUserConfig(); final ServerConfigurator getServerConfigurator(); void run(); boolean init(); boolean init(boolean forceReload); void changeTemplates(String newTemplates); void changeDBTemplate(String dbTemplate); void setDirectoryWithProperty(String key); String getUserTemplates(); File getNuxeoHome(); File getNuxeoDefaultConf(); List<File> getIncludedTemplates(); static void main(String[] args); void saveConfiguration(Map<String, String> changedParameters); void saveConfiguration(Map<String, String> changedParameters,
            boolean setGenerationOnceToFalse, boolean setGenerationFalseToOnce); void saveFilteredConfiguration(Map<String, String> changedParameters); Map<String, String> getChangedParameters(
            Map<String, String> changedParameters); String extractDatabaseTemplateName(); File getNuxeoConf(); void initLogs(); File getLogDir(); File getPidDir(); File getDataDir(); void verifyInstallation(); void checkJavaVersion(); void checkAddressesAndPorts(); InetAddress getBindAddress(); static void checkAddressReachable(InetAddress address); static void checkPortAvailable(InetAddress address, int port); File getTmpDir(); ArrayList<String> getLogFiles(); boolean isWizardRequired(); String rebuildTemplatesStr(String dbTemplate); File getConfigDir(); void prepareWizardStart(); void cleanupPostWizard(); File getRuntimeHome(); boolean isInstallInProgress(); File getDistributionMPDir(); File getInstallFile(); void addTemplate(String templatesToAdd); void rmTemplate(String templatesToRm); String setProperty(String key, String value); void checkDatabaseConnection(String databaseTemplate, String dbName,
            String dbUser, String dbPassword, String dbHost, String dbPort); Environment getEnv(); static Properties loadTrimmedProperties(File propsFile); static void loadTrimmedProperties(Properties props,
            InputStream propsIS); File getDumpedConfig(); Hashtable<Object, Object> getContextEnv(String ldapUrl,
            String bindDn, String bindPassword, boolean checkAuthentication); void checkLdapConnection(String ldapUrl, String ldapBindDn,
            String ldapBindPwd, boolean authenticate); void checkLdapConnection(Hashtable<Object, Object> contextEnv); }
ConfigurationGenerator { public String setProperty(String key, String value) throws ConfigurationException { String oldValue = getStoredConfig().getProperty(key); HashMap<String, String> newParametersToSave = new HashMap<>(); newParametersToSave.put(key, value); saveFilteredConfiguration(newParametersToSave); setBasicConfiguration(); return oldValue; } ConfigurationGenerator();  ConfigurationGenerator(boolean quiet, boolean debug); boolean isConfigurable(); void hideDeprecationWarnings(boolean hide); void setForceGeneration(boolean forceGeneration); boolean isForceGeneration(); Properties getUserConfig(); final ServerConfigurator getServerConfigurator(); void run(); boolean init(); boolean init(boolean forceReload); void changeTemplates(String newTemplates); void changeDBTemplate(String dbTemplate); void setDirectoryWithProperty(String key); String getUserTemplates(); File getNuxeoHome(); File getNuxeoDefaultConf(); List<File> getIncludedTemplates(); static void main(String[] args); void saveConfiguration(Map<String, String> changedParameters); void saveConfiguration(Map<String, String> changedParameters,
            boolean setGenerationOnceToFalse, boolean setGenerationFalseToOnce); void saveFilteredConfiguration(Map<String, String> changedParameters); Map<String, String> getChangedParameters(
            Map<String, String> changedParameters); String extractDatabaseTemplateName(); File getNuxeoConf(); void initLogs(); File getLogDir(); File getPidDir(); File getDataDir(); void verifyInstallation(); void checkJavaVersion(); void checkAddressesAndPorts(); InetAddress getBindAddress(); static void checkAddressReachable(InetAddress address); static void checkPortAvailable(InetAddress address, int port); File getTmpDir(); ArrayList<String> getLogFiles(); boolean isWizardRequired(); String rebuildTemplatesStr(String dbTemplate); File getConfigDir(); void prepareWizardStart(); void cleanupPostWizard(); File getRuntimeHome(); boolean isInstallInProgress(); File getDistributionMPDir(); File getInstallFile(); void addTemplate(String templatesToAdd); void rmTemplate(String templatesToRm); String setProperty(String key, String value); void checkDatabaseConnection(String databaseTemplate, String dbName,
            String dbUser, String dbPassword, String dbHost, String dbPort); Environment getEnv(); static Properties loadTrimmedProperties(File propsFile); static void loadTrimmedProperties(Properties props,
            InputStream propsIS); File getDumpedConfig(); Hashtable<Object, Object> getContextEnv(String ldapUrl,
            String bindDn, String bindPassword, boolean checkAuthentication); void checkLdapConnection(String ldapUrl, String ldapBindDn,
            String ldapBindPwd, boolean authenticate); void checkLdapConnection(Hashtable<Object, Object> contextEnv); static final String TEMPLATE_SEPARATOR; static final String[] COMPLIANT_JAVA_VERSIONS; @Deprecated
    static final String NUXEO_HOME; static final String NUXEO_CONF; static final String TEMPLATES; @Deprecated
    static final String PARAM_TEMPLATE_NAME; static final String PARAM_TEMPLATES_NAME; static final String PARAM_TEMPLATE_DBNAME; static final String PARAM_TEMPLATE_DBTYPE; @Deprecated
    static final String PARAM_TEMPLATES_NODB; static final String OLD_PARAM_TEMPLATES_PARSING_EXTENSIONS; static final String PARAM_TEMPLATES_PARSING_EXTENSIONS; static final String PARAM_TEMPLATES_FREEMARKER_EXTENSIONS; static final String PARAM_FORCE_GENERATION; static final String BOUNDARY_BEGIN; static final String BOUNDARY_END; static final List<String> DB_LIST; static final String PARAM_WIZARD_DONE; static final String PARAM_WIZARD_RESTART_PARAMS; static final String PARAM_FAKE_WINDOWS; static final String PARAM_LOOPBACK_URL; static final int MIN_PORT; static final int MAX_PORT; static final int ADDRESS_PING_TIMEOUT; static final String PARAM_BIND_ADDRESS; static final String PARAM_HTTP_PORT; static final String PARAM_STATUS_KEY; static final String PARAM_CONTEXT_PATH; static final String PARAM_MP_DIR; static final String DISTRIBUTION_MP_DIR; static final String INSTALL_AFTER_RESTART; static final String PARAM_DB_DRIVER; static final String PARAM_DB_JDBC_URL; static final String PARAM_DB_HOST; static final String PARAM_DB_PORT; static final String PARAM_DB_NAME; static final String PARAM_DB_USER; static final String PARAM_DB_PWD; static final String PARAM_PRODUCT_NAME; static final String PARAM_PRODUCT_VERSION; static final String PARAM_NUXEO_URL; static final String NUXEO_DEV_SYSTEM_PROP; static final String SEAM_DEBUG_SYSTEM_PROP; @Deprecated
    static final String SEAM_HOT_RELOAD_GLOBAL_CONFIG_FILE; public boolean isJBoss; public boolean isJetty; public boolean isTomcat; }