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
97884fc7
Commit
97884fc7
authored
Oct 26, 2017
by
Greg Messner
Browse files
Added test for ProjectUser.
parent
f66b4d2f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/test/java/org/gitlab4j/api/TestGitLabApiBeans.java
View file @
97884fc7
...
@@ -49,6 +49,7 @@ import org.gitlab4j.api.models.Note;
...
@@ -49,6 +49,7 @@ import org.gitlab4j.api.models.Note;
import
org.gitlab4j.api.models.Pipeline
;
import
org.gitlab4j.api.models.Pipeline
;
import
org.gitlab4j.api.models.Project
;
import
org.gitlab4j.api.models.Project
;
import
org.gitlab4j.api.models.ProjectHook
;
import
org.gitlab4j.api.models.ProjectHook
;
import
org.gitlab4j.api.models.ProjectUser
;
import
org.gitlab4j.api.models.Session
;
import
org.gitlab4j.api.models.Session
;
import
org.gitlab4j.api.models.Snippet
;
import
org.gitlab4j.api.models.Snippet
;
import
org.gitlab4j.api.models.SshKey
;
import
org.gitlab4j.api.models.SshKey
;
...
@@ -221,6 +222,20 @@ public class TestGitLabApiBeans {
...
@@ -221,6 +222,20 @@ public class TestGitLabApiBeans {
}
}
}
}
@Test
public
void
testProjectUsers
()
{
try
{
InputStreamReader
reader
=
new
InputStreamReader
(
GitLabApi
.
class
.
getResourceAsStream
(
"project-users.json"
));
ObjectMapper
objectMapper
=
jacksonJson
.
getContext
(
null
);
List
<
ProjectUser
>
projectUsres
=
objectMapper
.
readValue
(
reader
,
new
TypeReference
<
List
<
ProjectUser
>>()
{});
assertTrue
(
compareJson
(
projectUsres
,
"project-users"
));
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
}
@Test
@Test
public
void
testProjectHook
()
{
public
void
testProjectHook
()
{
...
...
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