Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
e2b8eaed
Commit
e2b8eaed
authored
7 years ago
by
Greg Messner
Browse files
Options
Download
Email Patches
Plain Diff
Added unit test for Pipeline.
parent
45290320
main
5.0.x
5.0.x.jdk17
6.x
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/test/java/org/gitlab4j/api/TestGitLabApiBeans.java
+12
-0
src/test/java/org/gitlab4j/api/TestGitLabApiBeans.java
src/test/resources/org/gitlab4j/api/pipeline.json
+20
-0
src/test/resources/org/gitlab4j/api/pipeline.json
with
32 additions
and
0 deletions
+32
-0
src/test/java/org/gitlab4j/api/TestGitLabApiBeans.java
+
12
-
0
View file @
e2b8eaed
...
@@ -18,6 +18,7 @@ import org.gitlab4j.api.models.Member;
...
@@ -18,6 +18,7 @@ import org.gitlab4j.api.models.Member;
import
org.gitlab4j.api.models.MergeRequest
;
import
org.gitlab4j.api.models.MergeRequest
;
import
org.gitlab4j.api.models.Milestone
;
import
org.gitlab4j.api.models.Milestone
;
import
org.gitlab4j.api.models.Note
;
import
org.gitlab4j.api.models.Note
;
import
org.gitlab4j.api.models.Pipeline
;
import
org.gitlab4j.api.models.Project
;
import
org.gitlab4j.api.models.Project
;
import
org.gitlab4j.api.models.ProjectHook
;
import
org.gitlab4j.api.models.ProjectHook
;
import
org.gitlab4j.api.models.ProjectSnippet
;
import
org.gitlab4j.api.models.ProjectSnippet
;
...
@@ -121,6 +122,17 @@ public class TestGitLabApiBeans {
...
@@ -121,6 +122,17 @@ public class TestGitLabApiBeans {
}
}
}
}
@Test
public
void
testPipeline
()
{
try
{
Pipeline
pipeline
=
makeFakeApiCall
(
Pipeline
.
class
,
"pipeline"
);
assertTrue
(
compareJson
(
pipeline
,
"pipeline"
));
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
}
@Test
@Test
public
void
testProjectHook
()
{
public
void
testProjectHook
()
{
...
...
This diff is collapsed.
Click to expand it.
src/test/resources/org/gitlab4j/api/pipeline.json
0 → 100644
+
20
-
0
View file @
e2b8eaed
{
"id"
:
46
,
"status"
:
"success"
,
"ref"
:
"master"
,
"sha"
:
"a91957a858320c0e17f3a0eca7cfacbff50ea29a"
,
"before_sha"
:
"a91957a858320c0e17f3a0eca7cfacbff50ea29a"
,
"tag"
:
false
,
"user"
:
{
"name"
:
"Administrator"
,
"username"
:
"root"
,
"id"
:
1
,
"state"
:
"active"
,
"avatar_url"
:
"http://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon"
,
"web_url"
:
"http://localhost:3000/root"
},
"created_at"
:
"2016-08-11T11:28:34.085Z"
,
"updated_at"
:
"2016-08-11T11:32:35.169Z"
,
"finished_at"
:
"2016-08-11T11:32:35.145Z"
,
"coverage"
:
"30.0"
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets