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
222fb26d
Commit
222fb26d
authored
Sep 17, 2017
by
Greg Messner
Browse files
Mods to support IssuesApi (#69)
parent
0ebaceea
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/test/java/org/gitlab4j/api/TestNotesApi.java
View file @
222fb26d
...
...
@@ -84,7 +84,7 @@ public class TestNotesApi {
Project
project
=
gitLabApi
.
getProjectApi
().
getProject
(
TEST_NAMESPACE
,
TEST_PROJECT_NAME
);
assertNotNull
(
project
);
for
(
Issue
issue
:
gitLabApi
.
get
Project
Api
().
getIssues
(
project
.
getId
()))
{
for
(
Issue
issue
:
gitLabApi
.
get
Issues
Api
().
getIssues
(
project
.
getId
()))
{
List
<
Note
>
notes
=
gitLabApi
.
getNotesApi
().
getNotes
(
project
.
getId
(),
issue
.
getIid
());
assertNotNull
(
notes
);
// This requires some issues in the project
...
...
src/test/resources/org/gitlab4j/api/issue.json
View file @
222fb26d
...
...
@@ -35,5 +35,11 @@
"subscribed"
:
false
,
"user_notes_count"
:
1
,
"web_url"
:
"http://example.com/example/example/issues/1"
,
"confidential"
:
false
"confidential"
:
false
,
"time_stats"
:
{
"time_estimate"
:
12600
,
"total_time_spent"
:
0
,
"human_time_estimate"
:
"3h30m"
,
"human_total_time_spent"
:
"0m"
}
}
\ No newline at end of file
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