|
33 | 33 | import java.util.List;
|
34 | 34 | import java.util.Map;
|
35 | 35 |
|
36 |
| -import org.gitlab4j.api.models.AccessRequest; |
37 |
| -import org.gitlab4j.api.models.Application; |
38 |
| -import org.gitlab4j.api.models.ApplicationSettings; |
39 |
| -import org.gitlab4j.api.models.ApprovalRule; |
40 |
| -import org.gitlab4j.api.models.ApprovalState; |
41 |
| -import org.gitlab4j.api.models.ArtifactsFile; |
42 |
| -import org.gitlab4j.api.models.AuditEvent; |
43 |
| -import org.gitlab4j.api.models.AwardEmoji; |
44 |
| -import org.gitlab4j.api.models.Badge; |
45 |
| -import org.gitlab4j.api.models.Blame; |
46 |
| -import org.gitlab4j.api.models.Board; |
47 |
| -import org.gitlab4j.api.models.Branch; |
48 |
| -import org.gitlab4j.api.models.Bridge; |
49 |
| -import org.gitlab4j.api.models.ChildEpic; |
50 |
| -import org.gitlab4j.api.models.Comment; |
51 |
| -import org.gitlab4j.api.models.Commit; |
52 |
| -import org.gitlab4j.api.models.CommitPayload; |
53 |
| -import org.gitlab4j.api.models.CommitStatus; |
54 |
| -import org.gitlab4j.api.models.CompareResults; |
55 |
| -import org.gitlab4j.api.models.Contributor; |
56 |
| -import org.gitlab4j.api.models.CreatedChildEpic; |
57 |
| -import org.gitlab4j.api.models.DeployKey; |
58 |
| -import org.gitlab4j.api.models.DeployToken; |
59 |
| -import org.gitlab4j.api.models.Deployment; |
60 |
| -import org.gitlab4j.api.models.Diff; |
61 |
| -import org.gitlab4j.api.models.Discussion; |
62 |
| -import org.gitlab4j.api.models.Email; |
63 |
| -import org.gitlab4j.api.models.Environment; |
64 |
| -import org.gitlab4j.api.models.Epic; |
65 |
| -import org.gitlab4j.api.models.EpicIssue; |
66 |
| -import org.gitlab4j.api.models.EpicIssueLink; |
67 |
| -import org.gitlab4j.api.models.Event; |
68 |
| -import org.gitlab4j.api.models.ExportStatus; |
69 |
| -import org.gitlab4j.api.models.ExternalStatusCheck; |
70 |
| -import org.gitlab4j.api.models.ExternalStatusCheckResult; |
71 |
| -import org.gitlab4j.api.models.ExternalStatusCheckStatus; |
72 |
| -import org.gitlab4j.api.models.FileUpload; |
73 |
| -import org.gitlab4j.api.models.GitLabCiTemplate; |
74 |
| -import org.gitlab4j.api.models.GitLabCiTemplateElement; |
75 |
| -import org.gitlab4j.api.models.GpgSignature; |
76 |
| -import org.gitlab4j.api.models.Group; |
77 |
| -import org.gitlab4j.api.models.GroupAccessToken; |
78 |
| -import org.gitlab4j.api.models.GroupHook; |
79 |
| -import org.gitlab4j.api.models.HealthCheckInfo; |
80 |
| -import org.gitlab4j.api.models.ImpersonationToken; |
81 |
| -import org.gitlab4j.api.models.ImportStatus; |
82 |
| -import org.gitlab4j.api.models.Issue; |
83 |
| -import org.gitlab4j.api.models.IssueLink; |
84 |
| -import org.gitlab4j.api.models.IssuesStatistics; |
85 |
| -import org.gitlab4j.api.models.Iteration; |
86 |
| -import org.gitlab4j.api.models.Job; |
87 |
| -import org.gitlab4j.api.models.Key; |
88 |
| -import org.gitlab4j.api.models.Label; |
89 |
| -import org.gitlab4j.api.models.LabelEvent; |
90 |
| -import org.gitlab4j.api.models.LdapGroupLink; |
91 |
| -import org.gitlab4j.api.models.Link; |
92 |
| -import org.gitlab4j.api.models.Member; |
93 |
| -import org.gitlab4j.api.models.MergeRequest; |
94 |
| -import org.gitlab4j.api.models.MergeRequestDiff; |
95 |
| -import org.gitlab4j.api.models.MergeRequestVersion; |
96 |
| -import org.gitlab4j.api.models.Metadata; |
97 |
| -import org.gitlab4j.api.models.Milestone; |
98 |
| -import org.gitlab4j.api.models.Note; |
99 |
| -import org.gitlab4j.api.models.NotificationSettings; |
100 |
| -import org.gitlab4j.api.models.OauthTokenResponse; |
| 36 | +import org.gitlab4j.api.models.*; |
101 | 37 | import org.gitlab4j.api.models.Package;
|
102 |
| -import org.gitlab4j.api.models.PackageFile; |
103 |
| -import org.gitlab4j.api.models.PersonalAccessToken; |
104 |
| -import org.gitlab4j.api.models.Pipeline; |
105 |
| -import org.gitlab4j.api.models.PipelineSchedule; |
106 |
| -import org.gitlab4j.api.models.Project; |
107 |
| -import org.gitlab4j.api.models.ProjectAccessToken; |
108 |
| -import org.gitlab4j.api.models.ProjectApprovalsConfig; |
109 |
| -import org.gitlab4j.api.models.ProjectFetches; |
110 |
| -import org.gitlab4j.api.models.ProjectGroup; |
111 |
| -import org.gitlab4j.api.models.ProjectHook; |
112 |
| -import org.gitlab4j.api.models.ProjectUser; |
113 |
| -import org.gitlab4j.api.models.ProtectedBranch; |
114 |
| -import org.gitlab4j.api.models.ProtectedTag; |
115 |
| -import org.gitlab4j.api.models.PushRules; |
116 |
| -import org.gitlab4j.api.models.RegistryRepository; |
117 |
| -import org.gitlab4j.api.models.RelatedEpic; |
118 |
| -import org.gitlab4j.api.models.RelatedEpicLink; |
119 |
| -import org.gitlab4j.api.models.Release; |
120 |
| -import org.gitlab4j.api.models.RemoteMirror; |
121 |
| -import org.gitlab4j.api.models.RepositoryFile; |
122 |
| -import org.gitlab4j.api.models.Runner; |
123 |
| -import org.gitlab4j.api.models.RunnerDetail; |
124 |
| -import org.gitlab4j.api.models.SamlGroupLink; |
125 |
| -import org.gitlab4j.api.models.SearchBlob; |
126 |
| -import org.gitlab4j.api.models.Snippet; |
127 |
| -import org.gitlab4j.api.models.SshKey; |
128 |
| -import org.gitlab4j.api.models.SystemHook; |
129 |
| -import org.gitlab4j.api.models.Tag; |
130 |
| -import org.gitlab4j.api.models.Todo; |
131 |
| -import org.gitlab4j.api.models.Topic; |
132 |
| -import org.gitlab4j.api.models.TreeItem; |
133 |
| -import org.gitlab4j.api.models.Trigger; |
134 |
| -import org.gitlab4j.api.models.User; |
135 |
| -import org.gitlab4j.api.models.Variable; |
136 | 38 | import org.gitlab4j.api.services.JiraService;
|
137 | 39 | import org.gitlab4j.api.services.SlackService;
|
138 | 40 | import org.gitlab4j.api.webhook.ExternalStatusCheckEvent;
|
@@ -802,6 +704,12 @@ public void testUser() throws Exception {
|
802 | 704 | assertTrue(compareJson(user, "user.json"));
|
803 | 705 | }
|
804 | 706 |
|
| 707 | + @Test |
| 708 | + public void testUploadedFile() throws Exception { |
| 709 | + UploadedFile uploadedFile = unmarshalResource(UploadedFile.class, "uploaded-file.json"); |
| 710 | + assertTrue(compareJson(uploadedFile, "uploaded-file.json")); |
| 711 | + } |
| 712 | + |
805 | 713 | @Test
|
806 | 714 | public void testImpersonationToken() throws Exception {
|
807 | 715 | ImpersonationToken token = unmarshalResource(ImpersonationToken.class, "impersonation-token.json");
|
|
0 commit comments