Commit c786505e authored by Greg Messner's avatar Greg Messner
Browse files

Now looks for the test-gitlab4j.properties in user.home.

parent 688be7af
package org.gitlab4j.api; package org.gitlab4j.api;
import java.io.File;
import java.io.FileInputStream; import java.io.FileInputStream;
import java.io.IOException; import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;
...@@ -30,8 +31,10 @@ public class TestUtils { ...@@ -30,8 +31,10 @@ public class TestUtils {
private static Properties testProperties; private static Properties testProperties;
static { static {
testProperties = new Properties(); testProperties = new Properties();
try (InputStream input = new FileInputStream("test-gitlab4j.properties")) { File path = new File(System.getProperty("user.home"), "test-gitlab4j.properties");
try (InputStream input = new FileInputStream(path)) {
testProperties.load(input); testProperties.load(input);
} catch (IOException ioe) { } catch (IOException ioe) {
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment