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
39209a56
Commit
39209a56
authored
Jul 02, 2019
by
Greg Messner
Browse files
Fixed bug in test set up.
parent
2aba1c61
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/test/java/org/gitlab4j/api/TestProjectApi.java
View file @
39209a56
...
@@ -140,7 +140,9 @@ public class TestProjectApi extends AbstractIntegrationTest {
...
@@ -140,7 +140,9 @@ public class TestProjectApi extends AbstractIntegrationTest {
if
(
TEST_GROUP
!=
null
&&
TEST_PROJECT_NAME
!=
null
)
{
if
(
TEST_GROUP
!=
null
&&
TEST_PROJECT_NAME
!=
null
)
{
try
{
try
{
List
<
Group
>
groups
=
gitLabApi
.
getGroupApi
().
getGroups
(
TEST_GROUP
);
List
<
Group
>
groups
=
gitLabApi
.
getGroupApi
().
getGroups
(
TEST_GROUP
);
gitLabApi
.
getProjectApi
().
unshareProject
(
testProject
,
groups
.
get
(
0
).
getId
());
if
(
groups
!=
null
&&
groups
.
size
()
>
0
)
{
gitLabApi
.
getProjectApi
().
unshareProject
(
testProject
,
groups
.
get
(
0
).
getId
());
}
List
<
Variable
>
variables
=
gitLabApi
.
getProjectApi
().
getVariables
(
testProject
);
List
<
Variable
>
variables
=
gitLabApi
.
getProjectApi
().
getVariables
(
testProject
);
if
(
variables
!=
null
)
{
if
(
variables
!=
null
)
{
...
...
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