@Test public void convertPropertyNameToEnvironmentParam() throws Exception { assertEquals("SOLR_GETHIN",ConfigUtil.convertPropertyNameToEnvironmentParam("gethin")); assertEquals("SOLR_SOLR_CONTENT_DIR",ConfigUtil.convertPropertyNameToEnvironmentParam("solr.content.dir")); assertEquals("SOLR_SOLR_MODEL_DIR",ConfigUtil.convertPropertyNameToEnvironmentParam("solr.model.dir")); assertEquals("SOLR_CREATE_ALFRESCO_DEFAULTS",ConfigUtil.convertPropertyNameToEnvironmentParam(AlfrescoCoreAdminHandler.ALFRESCO_DEFAULTS)); assertEquals("SOLR_SOLR_HOST",ConfigUtil.convertPropertyNameToEnvironmentParam(SolrInformationServer.SOLR_HOST)); assertEquals("SOLR_SOLR_PORT",ConfigUtil.convertPropertyNameToEnvironmentParam(SolrInformationServer.SOLR_PORT)); assertEquals("SOLR_SOLR_BASEURL",ConfigUtil.convertPropertyNameToEnvironmentParam(SolrInformationServer.SOLR_BASEURL)); }
protected static String convertPropertyNameToEnvironmentParam(String propertyName) { if (propertyName == null) propertyName = ""; return ENV_PREFIX+propertyName.replace('.','_').toUpperCase(); }
ConfigUtil { protected static String convertPropertyNameToEnvironmentParam(String propertyName) { if (propertyName == null) propertyName = ""; return ENV_PREFIX+propertyName.replace('.','_').toUpperCase(); } }
ConfigUtil { protected static String convertPropertyNameToEnvironmentParam(String propertyName) { if (propertyName == null) propertyName = ""; return ENV_PREFIX+propertyName.replace('.','_').toUpperCase(); }  }
ConfigUtil { protected static String convertPropertyNameToEnvironmentParam(String propertyName) { if (propertyName == null) propertyName = ""; return ENV_PREFIX+propertyName.replace('.','_').toUpperCase(); }  static String locateProperty(String propertyName, String defaultValue); }
ConfigUtil { protected static String convertPropertyNameToEnvironmentParam(String propertyName) { if (propertyName == null) propertyName = ""; return ENV_PREFIX+propertyName.replace('.','_').toUpperCase(); }  static String locateProperty(String propertyName, String defaultValue);  }