@Test public void propertiesFileFromFileSystem() throws Exception { loadProperties(FileSystem.createTemporaryFile("level = warn")); assertThat(Configuration.get("level")).isEqualToIgnoringCase("warn"); }
public static String get(final String key) { try { lock.readLock().lock(); frozen = true; return (String) properties.get(key); } finally { lock.readLock().unlock(); } }
Configuration { public static String get(final String key) { try { lock.readLock().lock(); frozen = true; return (String) properties.get(key); } finally { lock.readLock().unlock(); } } }
Configuration { public static String get(final String key) { try { lock.readLock().lock(); frozen = true; return (String) properties.get(key); } finally { lock.readLock().unlock(); } } private  Configuration(); }
Configuration { public static String get(final String key) { try { lock.readLock().lock(); frozen = true; return (String) properties.get(key); } finally { lock.readLock().unlock(); } } private  Configuration(); static Locale getLocale(); static boolean isEscapingEnabled(); static String get(final String key); static Map<String, String> getSiblings(final String prefix); static Map<String, String> getChildren(final String key); static void set(final String key, final String value); static void replace(final Map<String, String> configuration); static String resolve(final String value, final Resolver resolver); static void mergeSystemProperties(final Properties properties); static void resolveProperties(final Properties properties, final Resolver... resolvers); static boolean isFrozen(); }
Configuration { public static String get(final String key) { try { lock.readLock().lock(); frozen = true; return (String) properties.get(key); } finally { lock.readLock().unlock(); } } private  Configuration(); static Locale getLocale(); static boolean isEscapingEnabled(); static String get(final String key); static Map<String, String> getSiblings(final String prefix); static Map<String, String> getChildren(final String key); static void set(final String key, final String value); static void replace(final Map<String, String> configuration); static String resolve(final String value, final Resolver resolver); static void mergeSystemProperties(final Properties properties); static void resolveProperties(final Properties properties, final Resolver... resolvers); static boolean isFrozen();  }