Commit 973799f5 authored by Greg Messner's avatar Greg Messner
Browse files

Added test of lame model methods (#577)

parent d380a949
...@@ -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");
......
[
{
"commit": {
"id": "d42409d56517157c48bf3bd97d3f75974dde19fb",
"message": "Add feature\n\nalso 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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment