Skip to content

Commit 5a6b9e4

Browse files
committed
Add test case
1 parent 585f184 commit 5a6b9e4

File tree

3 files changed

+53
-6
lines changed

3 files changed

+53
-6
lines changed

src/main/java/org/gitlab4j/api/models/AbstractIssue.java

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,11 @@ public String toString() {
8383
private Integer mergeRequestsCount;
8484
private Boolean hasTasks;
8585
private String taskStatus;
86+
private Boolean imported;
87+
private String importedFrom;
8688
private Iteration iteration;
8789
private TaskCompletionStatus taskCompletionStatus;
90+
private String healthStatus;
8891

8992
public Assignee getAssignee() {
9093
return assignee;
@@ -331,13 +334,29 @@ public void setTaskStatus(String taskStatus) {
331334
this.taskStatus = taskStatus;
332335
}
333336

337+
public Boolean getImported() {
338+
return imported;
339+
}
340+
341+
public void setImported(Boolean imported) {
342+
this.imported = imported;
343+
}
344+
345+
public String getImportedFrom() {
346+
return importedFrom;
347+
}
348+
349+
public void setImportedFrom(String importedFrom) {
350+
this.importedFrom = importedFrom;
351+
}
352+
334353
public Iteration getIteration() {
335-
return iteration;
336-
}
354+
return iteration;
355+
}
337356

338-
public void setIteration(Iteration iteration) {
339-
this.iteration = iteration;
340-
}
357+
public void setIteration(Iteration iteration) {
358+
this.iteration = iteration;
359+
}
341360

342361
public TaskCompletionStatus getTaskCompletionStatus() {
343362
return taskCompletionStatus;
@@ -371,6 +390,14 @@ public void setEpic(IssueEpic epic) {
371390
this.epic = epic;
372391
}
373392

393+
public String getHealthStatus() {
394+
return healthStatus;
395+
}
396+
397+
public void setHealthStatus(String healthStatus) {
398+
this.healthStatus = healthStatus;
399+
}
400+
374401
@Override
375402
public String toString() {
376403
return (JacksonJson.toJsonString(this));

src/main/java/org/gitlab4j/api/models/AbstractMinimalEpic.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ public class AbstractMinimalEpic<E extends AbstractMinimalEpic<E>> implements Se
1313
private Long parentId;
1414
private String title;
1515
private String reference;
16+
private String url;
1617

1718
public Long getId() {
1819
return id;
@@ -68,6 +69,14 @@ public void setReference(String reference) {
6869
this.reference = reference;
6970
}
7071

72+
public String getUrl() {
73+
return url;
74+
}
75+
76+
public void setUrl(String url) {
77+
this.url = url;
78+
}
79+
7180
public String toString() {
7281
return (JacksonJson.toJsonString(this));
7382
}

src/test/resources/org/gitlab4j/api/issue.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"id" : 1,
4141
"name" : "Administrator"
4242
},
43+
"severity": "UNKNOWN",
4344
"subscribed": false,
4445
"user_notes_count": 1,
4546
"web_url": "http://example.com/example/example/issues/1",
@@ -59,6 +60,15 @@
5960
"count": 0,
6061
"completed_count": 0
6162
},
63+
"imported": false,
64+
"imported_from": "none",
65+
"epic": {
66+
"id": 1347,
67+
"iid": 5,
68+
"title": "Test Epic",
69+
"url": "/groups/example/-/epics/5",
70+
"group_id": 1651
71+
},
6272
"iteration": {
6373
"id": 158,
6474
"iid": 34,
@@ -72,5 +82,6 @@
7282
"start_date": "2023-09-04T00:00:00Z",
7383
"due_date": "2023-09-10T00:00:00Z",
7484
"web_url": "http://example.com/example/-/iterations/158"
75-
}
85+
},
86+
"health_status": "needs_attention"
7687
}

0 commit comments

Comments
 (0)