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