(String key)
| 7 | |
| 8 | |
| 9 | public static String getValue(String key) { |
| 10 | Properties props = new Properties(); |
| 11 | |
| 12 | try { |
| 13 | InputStream inputStream = ClassLoader.getSystemClassLoader().getResourceAsStream("settings.properties"); |
| 14 | props.load(inputStream); |
| 15 | } catch (Exception e) { |
| 16 | e.printStackTrace(); |
| 17 | } |
| 18 | |
| 19 | return props.getProperty(key); |
| 20 | } |
| 21 | |
| 22 | } |
no outgoing calls
no test coverage detected