diff options
Diffstat (limited to 'test/uk/ac/ox/cs/pagoda/util/TestUtil.java')
| -rw-r--r-- | test/uk/ac/ox/cs/pagoda/util/TestUtil.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/uk/ac/ox/cs/pagoda/util/TestUtil.java b/test/uk/ac/ox/cs/pagoda/util/TestUtil.java index 1802147..ad0d494 100644 --- a/test/uk/ac/ox/cs/pagoda/util/TestUtil.java +++ b/test/uk/ac/ox/cs/pagoda/util/TestUtil.java | |||
| @@ -26,8 +26,7 @@ public class TestUtil { | |||
| 26 | 26 | ||
| 27 | public static Properties getConfig() { | 27 | public static Properties getConfig() { |
| 28 | if(!isConfigLoaded) { | 28 | if(!isConfigLoaded) { |
| 29 | try (InputStream in = TestUtil.class.getClassLoader() | 29 | try(InputStream in = TestUtil.class.getClassLoader().getResourceAsStream(CONFIG_FILE)) { |
| 30 | .getResourceAsStream(CONFIG_FILE)) { | ||
| 31 | config = new java.util.Properties(); | 30 | config = new java.util.Properties(); |
| 32 | config.load(in); | 31 | config.load(in); |
| 33 | in.close(); | 32 | in.close(); |
