#162 - Attach label/component to IssueTracker.createTicket(…).
This commit is contained in:
@@ -156,7 +156,8 @@ class GitHubIssueTrackerIntegrationTests extends AbstractIntegrationTests {
|
||||
github.createReleaseTicket(BUILD_HOPPER_RC1);
|
||||
|
||||
verify(postRequestedFor(urlPathMatching(ISSUES_URI))
|
||||
.withRequestBody(equalToJson("{\"title\":\"Release 1.8 RC1 (Hopper)\",\"milestone\":45}")));
|
||||
.withRequestBody(
|
||||
equalToJson("{\"title\":\"Release 1.8 RC1 (Hopper)\",\"milestone\":45,\"labels\":[ \"type: task\" ]}")));
|
||||
}
|
||||
|
||||
@Test // #5
|
||||
|
||||
@@ -25,11 +25,10 @@ import org.junit.jupiter.api.extension.ExtendWith;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.test.autoconfigure.json.JsonTest;
|
||||
import org.springframework.boot.test.json.JacksonTester;
|
||||
import org.springframework.data.release.issues.github.GitHubIssue.Milestone;
|
||||
import org.springframework.test.context.junit.jupiter.SpringExtension;
|
||||
|
||||
/**
|
||||
* Unit tests for {@link GitHubIssue}.
|
||||
* Unit tests for {@link GitHubWriteIssue}.
|
||||
*
|
||||
* @author Mark Paluch
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user