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
973799f5
Commit
973799f5
authored
May 20, 2020
by
Greg Messner
Browse files
Added test of lame model methods (#577)
parent
d380a949
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/test/java/org/gitlab4j/api/TestGitLabApiBeans.java
View file @
973799f5
...
@@ -40,6 +40,7 @@ import org.gitlab4j.api.models.ApprovalRule;
...
@@ -40,6 +40,7 @@ import org.gitlab4j.api.models.ApprovalRule;
import
org.gitlab4j.api.models.ArtifactsFile
;
import
org.gitlab4j.api.models.ArtifactsFile
;
import
org.gitlab4j.api.models.AwardEmoji
;
import
org.gitlab4j.api.models.AwardEmoji
;
import
org.gitlab4j.api.models.Badge
;
import
org.gitlab4j.api.models.Badge
;
import
org.gitlab4j.api.models.Blame
;
import
org.gitlab4j.api.models.Board
;
import
org.gitlab4j.api.models.Board
;
import
org.gitlab4j.api.models.Branch
;
import
org.gitlab4j.api.models.Branch
;
import
org.gitlab4j.api.models.Comment
;
import
org.gitlab4j.api.models.Comment
;
...
@@ -138,6 +139,12 @@ public class TestGitLabApiBeans {
...
@@ -138,6 +139,12 @@ public class TestGitLabApiBeans {
assertTrue
(
compareJson
(
badges
,
"badges.json"
));
assertTrue
(
compareJson
(
badges
,
"badges.json"
));
}
}
@Test
public
void
testBlame
()
throws
Exception
{
List
<
Blame
>
blame
=
unmarshalResourceList
(
Blame
.
class
,
"blame.json"
);
assertTrue
(
compareJson
(
blame
,
"blame.json"
));
}
@Test
@Test
public
void
testBoard
()
throws
Exception
{
public
void
testBoard
()
throws
Exception
{
List
<
Board
>
boards
=
unmarshalResourceList
(
Board
.
class
,
"project-board.json"
);
List
<
Board
>
boards
=
unmarshalResourceList
(
Board
.
class
,
"project-board.json"
);
...
...
src/test/resources/org/gitlab4j/api/blame.json
0 → 100644
View file @
973799f5
[
{
"commit"
:
{
"id"
:
"d42409d56517157c48bf3bd97d3f75974dde19fb"
,
"message"
:
"Add feature
\n\n
also fix bug
\n
"
,
"parent_ids"
:
[
"cc6e14f9328fa6d7b5a0d3c30dc2002a3f2a3822"
],
"authored_date"
:
"2015-12-18T08:12:22Z"
,
"author_name"
:
"John Doe"
,
"author_email"
:
"john.doe@example.com"
,
"committed_date"
:
"2015-12-18T08:12:22Z"
,
"committer_name"
:
"John Doe"
,
"committer_email"
:
"john.doe@example.com"
},
"lines"
:
[
"require 'fileutils'"
,
"require 'open3'"
,
""
]
}
]
\ No newline at end of file
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