@Test public void systemPropertyTest() { System.setProperty("humanize.config", "humanize.alt.properties"); Properties p = ConfigLoader.loadProperties(); Assert.assertNotNull(p); String specStr = p.getProperty(ConfigLoader.CACHE_BUILDER_SPEC); Assert.assertEquals(specStr, "expireAfterAccess=30m"); CacheBuilderSpec spec = CacheBuilderSpec.parse(specStr); Assert.assertNotNull(spec); }
public static Properties loadProperties() { String path = System.getProperty("humanize.config"); return loadProperties(path == null ? "humanize.properties" : path); }
ConfigLoader { public static Properties loadProperties() { String path = System.getProperty("humanize.config"); return loadProperties(path == null ? "humanize.properties" : path); } }
ConfigLoader { public static Properties loadProperties() { String path = System.getProperty("humanize.config"); return loadProperties(path == null ? "humanize.properties" : path); }  }
ConfigLoader { public static Properties loadProperties() { String path = System.getProperty("humanize.config"); return loadProperties(path == null ? "humanize.properties" : path); }  static Properties loadProperties(); static Properties loadProperties(final String path); static URL locateConfig(final String path); }
ConfigLoader { public static Properties loadProperties() { String path = System.getProperty("humanize.config"); return loadProperties(path == null ? "humanize.properties" : path); }  static Properties loadProperties(); static Properties loadProperties(final String path); static URL locateConfig(final String path); static final String CACHE_BUILDER_SPEC; }