Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
5f399bf0
Commit
5f399bf0
authored
11 years ago
by
Greg Messner
Browse files
Options
Download
Email Patches
Plain Diff
Added testProjectHook().
parent
14babb08
main
5.0.x
5.0.x.jdk17
6.x
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/test/java/com/messners/gitlab/api/TestGitLabApiBeans.java
+12
-0
...test/java/com/messners/gitlab/api/TestGitLabApiBeans.java
with
12 additions
and
0 deletions
+12
-0
src/test/java/com/messners/gitlab/api/TestGitLabApiBeans.java
+
12
-
0
View file @
5f399bf0
...
...
@@ -26,6 +26,7 @@ import com.messners.gitlab.api.models.MergeRequestComment;
import
com.messners.gitlab.api.models.Milestone
;
import
com.messners.gitlab.api.models.Note
;
import
com.messners.gitlab.api.models.Project
;
import
com.messners.gitlab.api.models.ProjectHook
;
import
com.messners.gitlab.api.models.ProjectSnippet
;
import
com.messners.gitlab.api.models.Session
;
import
com.messners.gitlab.api.models.SystemHook
;
...
...
@@ -101,6 +102,17 @@ public class TestGitLabApiBeans {
}
}
@Test
public
void
testProjectHook
()
{
try
{
ProjectHook
hook
=
makeFakeApiCall
(
ProjectHook
.
class
,
"hook"
);
assertTrue
(
compareJson
(
hook
,
"hook"
));
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
}
@Test
public
void
testKey
()
{
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets