Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
c786505e
Commit
c786505e
authored
Jun 24, 2017
by
Greg Messner
Browse files
Now looks for the test-gitlab4j.properties in user.home.
parent
688be7af
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/test/java/org/gitlab4j/api/TestUtils.java
View file @
c786505e
package
org.gitlab4j.api
;
import
java.io.File
;
import
java.io.FileInputStream
;
import
java.io.IOException
;
import
java.io.InputStream
;
...
...
@@ -30,8 +31,10 @@ public class TestUtils {
private
static
Properties
testProperties
;
static
{
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
);
}
catch
(
IOException
ioe
)
{
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment