java.lang.Object
org.kohsuke.github.AbstractGitHubWireMockTest
org.kohsuke.github.GHIssueTest
The Class GHIssueTest.
- Author:
- Kohsuke Kawaguchi, Yoann Rodiere
-
Nested Class Summary
Nested classes/interfaces inherited from class org.kohsuke.github.AbstractGitHubWireMockTest
AbstractGitHubWireMockTest.TemplatingHelper -
Field Summary
Fields inherited from class org.kohsuke.github.AbstractGitHubWireMockTest
baseFilesClassPath, baseRecordPath, gitHub, mockGitHub, tempGitHubRepositories, templating, useDefaultGitHub -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the labels.voidAdds the labels concurrency issue.voidcleanUp()Clean up.voidClose issue.voidClose issue as not planned.voidCreates the issue.protected GHRepositoryGets the repository.voidGets the user test.voidIssue comment.voidRemoves the labels.voidSets the assignee.voidSets the labels.Methods inherited from class org.kohsuke.github.AbstractGitHubWireMockTest
assertThat, assertThat, assertThat, cleanupRepository, cleanupTempRepositories, fail, fail, getGitHubBuilder, getNonRecordingGitHub, getTempRepository, getTempRepository, getUser, getUser, getWireMockOptions, kohsuke, requireProxy, snapshotNotAllowed, verifyAuthenticated, wireMockSetup
-
Constructor Details
-
GHIssueTest
public GHIssueTest()Create default GHIssueTest instance
-
-
Method Details
-
addLabels
Adds the labels.- Throws:
Exception- the exception
-
addLabelsConcurrencyIssue
Adds the labels concurrency issue.- Throws:
Exception- the exception
-
cleanUp
Clean up.- Throws:
Exception- the exception
-
closeIssue
Close issue.- Throws:
Exception- the exception
-
closeIssueNotPlanned
Close issue as not planned.- Throws:
Exception- the exception
-
createIssue
Creates the issue.- Throws:
Exception- the exception
-
getUserTest
Gets the user test.- Throws:
IOException- Signals that an I/O exception has occurred.
-
issueComment
Issue comment.- Throws:
Exception- the exception
-
removeLabels
Removes the labels.- Throws:
Exception- the exception
-
setAssignee
Sets the assignee.- Throws:
Exception- the exception
-
setLabels
Sets the labels.- Throws:
Exception- the exception
-
getRepository
Gets the repository.- Returns:
- the repository
- Throws:
IOException- Signals that an I/O exception has occurred.
-