@Test public void convertPropertyNameToJNDIPath() throws Exception { assertEquals("java:comp/env/gethin",ConfigUtil.convertPropertyNameToJNDIPath("gethin")); assertEquals("java:comp/env/solr/content/dir",ConfigUtil.convertPropertyNameToJNDIPath("solr.content.dir")); assertEquals("java:comp/env/solr/model/dir",ConfigUtil.convertPropertyNameToJNDIPath("solr.model.dir")); assertEquals("java:comp/env/",ConfigUtil.convertPropertyNameToJNDIPath("")); assertEquals("java:comp/env/",ConfigUtil.convertPropertyNameToJNDIPath(null)); }
protected static String convertPropertyNameToJNDIPath(String propertyName) { if (propertyName == null) propertyName = ""; return JNDI_PREFIX+propertyName.replace('.','/'); }
ConfigUtil { protected static String convertPropertyNameToJNDIPath(String propertyName) { if (propertyName == null) propertyName = ""; return JNDI_PREFIX+propertyName.replace('.','/'); } }
ConfigUtil { protected static String convertPropertyNameToJNDIPath(String propertyName) { if (propertyName == null) propertyName = ""; return JNDI_PREFIX+propertyName.replace('.','/'); }  }
ConfigUtil { protected static String convertPropertyNameToJNDIPath(String propertyName) { if (propertyName == null) propertyName = ""; return JNDI_PREFIX+propertyName.replace('.','/'); }  static String locateProperty(String propertyName, String defaultValue); }
ConfigUtil { protected static String convertPropertyNameToJNDIPath(String propertyName) { if (propertyName == null) propertyName = ""; return JNDI_PREFIX+propertyName.replace('.','/'); }  static String locateProperty(String propertyName, String defaultValue);  }