Commit 95f5b3b19d4f3568d15148e562287602d0615d97

Authored by volodymyr-babak
1 parent 392c65ef

fixed file path

... ... @@ -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 }
... ...