Showing
1 changed file
with
1 additions
and
2 deletions
... | ... | @@ -37,9 +37,8 @@ public class TestParams { |
37 | 37 | private Properties params = new Properties(); |
38 | 38 | |
39 | 39 | public TestParams() throws IOException { |
40 | - URL location = TestParams.class.getProtectionDomain().getCodeSource().getLocation(); | |
41 | 40 | try { |
42 | - params.load(new FileInputStream(location.getFile() + TEST_PROPERTIES)); | |
41 | + params.load(TestParams.class.getClassLoader().getResourceAsStream(TEST_PROPERTIES)); | |
43 | 42 | } catch (Exception e) { |
44 | 43 | log.warn("Failed to read " + TEST_PROPERTIES); |
45 | 44 | } | ... | ... |