File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
src/test/java/org/gitlab4j/api Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 4949import org .gitlab4j .api .models .Pipeline ;
5050import org .gitlab4j .api .models .Project ;
5151import org .gitlab4j .api .models .ProjectHook ;
52+ import org .gitlab4j .api .models .ProjectUser ;
5253import org .gitlab4j .api .models .Session ;
5354import org .gitlab4j .api .models .Snippet ;
5455import org .gitlab4j .api .models .SshKey ;
@@ -221,6 +222,20 @@ public void testArtifactsFile() {
221222 }
222223 }
223224
225+ @ Test
226+ public void testProjectUsers () {
227+
228+ try {
229+ InputStreamReader reader = new InputStreamReader (GitLabApi .class .getResourceAsStream ("project-users.json" ));
230+ ObjectMapper objectMapper = jacksonJson .getContext (null );
231+ List <ProjectUser > projectUsres = objectMapper .readValue (reader , new TypeReference <List <ProjectUser >>() {});
232+ assertTrue (compareJson (projectUsres , "project-users" ));
233+
234+ } catch (Exception e ) {
235+ e .printStackTrace ();
236+ }
237+ }
238+
224239 @ Test
225240 public void testProjectHook () {
226241
You can’t perform that action at this time.
0 commit comments