Skip to content

Commit 7107e9d

Browse files
committed
Added testing of Application and Email models (#338, #339).
1 parent 3697df3 commit 7107e9d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/test/java/org/gitlab4j/api/TestGitLabApiBeans.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
import java.util.List;
3333
import java.util.Map;
3434

35+
import org.gitlab4j.api.models.Application;
3536
import org.gitlab4j.api.models.ArtifactsFile;
3637
import org.gitlab4j.api.models.AwardEmoji;
3738
import org.gitlab4j.api.models.Board;
@@ -44,6 +45,7 @@
4445
import org.gitlab4j.api.models.DeployKey;
4546
import org.gitlab4j.api.models.Diff;
4647
import org.gitlab4j.api.models.Discussion;
48+
import org.gitlab4j.api.models.Email;
4749
import org.gitlab4j.api.models.Epic;
4850
import org.gitlab4j.api.models.EpicIssue;
4951
import org.gitlab4j.api.models.Event;
@@ -86,6 +88,12 @@
8688

8789
public class TestGitLabApiBeans {
8890

91+
@Test
92+
public void testApplications() throws Exception {
93+
List<Application> applications = unmarshalResourceList(Application.class, "applications.json");
94+
assertTrue(compareJson(applications, "applications.json"));
95+
}
96+
8997
@Test
9098
public void testAwardEmoji() throws Exception {
9199
AwardEmoji awardEmoji = unmarshalResource(AwardEmoji.class, "award-emoji.json");
@@ -144,6 +152,12 @@ public void testComment() throws Exception {
144152
assertTrue(compareJson(comment, "comment.json"));
145153
}
146154

155+
@Test
156+
public void testEmails() throws Exception {
157+
List<Email> emails = unmarshalResourceList(Email.class, "emails.json");
158+
assertTrue(compareJson(emails, "emails.json"));
159+
}
160+
147161
@Test
148162
public void testEpic() throws Exception {
149163
Epic epic = unmarshalResource(Epic.class, "epic.json");

0 commit comments

Comments
 (0)