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
3489473f
Commit
3489473f
authored
Mar 02, 2014
by
Greg Messner
Browse files
Changes due to refactored GitLabApi.
parent
dae00ce1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/test/java/com/messners/gitlab/api/TestGitLabApi.java
View file @
3489473f
...
@@ -7,6 +7,8 @@ import java.util.List;
...
@@ -7,6 +7,8 @@ import java.util.List;
import
org.junit.BeforeClass
;
import
org.junit.BeforeClass
;
import
org.junit.Test
;
import
org.junit.Test
;
import
com.messners.gitlab.api.models.Project
;
public
class
TestGitLabApi
{
public
class
TestGitLabApi
{
// The following needs to be set to your test repository
// The following needs to be set to your test repository
...
@@ -28,7 +30,7 @@ public class TestGitLabApi {
...
@@ -28,7 +30,7 @@ public class TestGitLabApi {
public
void
testProjects
()
{
public
void
testProjects
()
{
try
{
try
{
List
<
Project
>
projects
=
gitLabApi
.
getProjects
();
List
<
Project
>
projects
=
gitLabApi
.
getProjectApi
().
getProjects
();
assertTrue
(
projects
!=
null
);
assertTrue
(
projects
!=
null
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
System
.
err
.
println
(
"Check TEST_HOST_URL and TEST_PRIVATE_TOKEN, they are probably not set."
);
System
.
err
.
println
(
"Check TEST_HOST_URL and TEST_PRIVATE_TOKEN, they are probably not set."
);
...
@@ -39,7 +41,7 @@ public class TestGitLabApi {
...
@@ -39,7 +41,7 @@ public class TestGitLabApi {
public
void
testOwnedProjects
()
{
public
void
testOwnedProjects
()
{
try
{
try
{
List
<
Project
>
projects
=
gitLabApi
.
getOwnedProjects
();
List
<
Project
>
projects
=
gitLabApi
.
getProjectApi
().
getOwnedProjects
();
assertTrue
(
projects
!=
null
);
assertTrue
(
projects
!=
null
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
...
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