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
7d0612e9
Commit
7d0612e9
authored
Jun 11, 2019
by
Greg Messner
Browse files
Added test to fetch public projects without authentication (#384).
parent
e8f8a3a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/test/java/org/gitlab4j/api/TestProjectApi.java
View file @
7d0612e9
...
...
@@ -39,6 +39,7 @@ import java.util.stream.Stream;
import
javax.ws.rs.core.Response
;
import
org.gitlab4j.api.GitLabApi.ApiVersion
;
import
org.gitlab4j.api.models.AccessLevel
;
import
org.gitlab4j.api.models.AccessRequest
;
import
org.gitlab4j.api.models.Group
;
...
...
@@ -187,6 +188,13 @@ public class TestProjectApi extends AbstractIntegrationTest {
assumeNotNull
(
gitLabApi
);
}
@Test
public
void
testProjectsNoAuth
()
throws
GitLabApiException
{
GitLabApi
gitLabApi
=
new
GitLabApi
(
TEST_HOST_URL
,
""
);
List
<
Project
>
projects
=
gitLabApi
.
getProjectApi
().
getProjects
(
1
,
1
);
assertTrue
(
projects
!=
null
);
}
@Test
public
void
testCreate
()
throws
GitLabApiException
{
...
...
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