Skip to content

Commit f75b184

Browse files
committed
Test comments Jira
1 parent 39134b0 commit f75b184

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

server/src/test/java/access/jira/JiraClientTest.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,14 @@ void create() {
4545
"mail@to.org"));
4646
assertEquals("CTX-1000", jiraKey);
4747
}
48+
49+
@Test
50+
void comment() {
51+
String jiraKey = "CTX-1000";
52+
stubFor(post(urlPathMatching("/issue/" + jiraKey + "/comment")).willReturn(aResponse()
53+
.withHeader("Content-Type", "application/json")
54+
.withStatus(200)));
55+
56+
jiraClient.comment(jiraKey,"Comment");
57+
}
4858
}

0 commit comments

Comments
 (0)