java.lang.Object
org.kohsuke.github.AbstractGitHubWireMockTest
org.kohsuke.github.GHPullRequestTest
The Class GHPullRequestTest.
- Author:
- Kohsuke Kawaguchi
-
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the labels.void
Adds the labels concurrency issue.void
Check non existent author.void
Check non existent reviewer.void
Check pull request reviewer.void
cleanUp()
Clean up.void
Close pull request.void
Comments objects in pull request review builder.void
Creates the draft pull request.void
Creates the pull request.void
Get list of commits from searched PR.protected GHRepository
Gets the repository.void
Gets the user test.void
Merge commit SHA.void
Pull request comment.void
Pull request review comments.void
Pull request reviews.void
Query pull requests qualified head.void
Query pull requests unqualified head.void
Create/Delete reaction for pull requests.void
Test refreshing a PR coming from the search results.void
Removes the labels.void
Sets the assignee.void
Sets the base branch.void
Sets the base branch non existing.void
Sets the labels.void
Squash merge.void
Test pull request review requests.void
Test pull request team review requests.void
Update content squash merge.void
Update outdated branches.void
Update outdated branches unexpected head.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
-
GHPullRequestTest
public GHPullRequestTest()Create default GHPullRequestTest instance
-
-
Method Details
-
cleanUp
Clean up.- Throws:
Exception
- the exception
-
createPullRequest
Creates the pull request.- Throws:
Exception
- the exception
-
createDraftPullRequest
Creates the draft pull request.- Throws:
Exception
- the exception
-
pullRequestComment
Pull request comment.- Throws:
Exception
- the exception
-
getListOfCommits
Get list of commits from searched PR. This would result in a wrong API URL used, resulting in a GHFileNotFoundException. For more details, please have a look at the bug description in https://github.com/hub4j/github-api/issues/1778.- Throws:
Exception
- the exception
-
closePullRequest
Close pull request.- Throws:
Exception
- the exception
-
pullRequestReviews
Pull request reviews.- Throws:
Exception
- the exception
-
commentsInPullRequestReviewBuilder
public void commentsInPullRequestReviewBuilder()Comments objects in pull request review builder. -
pullRequestReviewComments
Pull request review comments.- Throws:
Exception
- the exception
-
testPullRequestReviewRequests
Test pull request review requests.- Throws:
Exception
- the exception
-
testPullRequestTeamReviewRequests
Test pull request team review requests.- Throws:
Exception
- the exception
-
mergeCommitSHA
Merge commit SHA.- Throws:
Exception
- the exception
-
setBaseBranch
Sets the base branch.- Throws:
Exception
- the exception
-
setBaseBranchNonExisting
Sets the base branch non existing.- Throws:
Exception
- the exception
-
updateOutdatedBranchesUnexpectedHead
Update outdated branches unexpected head.- Throws:
Exception
- the exception
-
updateOutdatedBranches
Update outdated branches.- Throws:
Exception
- the exception
-
squashMerge
Squash merge.- Throws:
Exception
- the exception
-
updateContentSquashMerge
Update content squash merge.- Throws:
Exception
- the exception
-
queryPullRequestsQualifiedHead
Query pull requests qualified head.- Throws:
Exception
- the exception
-
queryPullRequestsUnqualifiedHead
Query pull requests unqualified head.- Throws:
Exception
- the exception
-
setLabels
Sets the labels.- Throws:
Exception
- the exception
-
addLabels
Adds the labels.- Throws:
Exception
- the exception
-
addLabelsConcurrencyIssue
Adds the labels concurrency issue.- Throws:
Exception
- the exception
-
removeLabels
Removes the labels.- Throws:
Exception
- the exception
-
setAssignee
Sets the assignee.- Throws:
Exception
- the exception
-
getUserTest
Gets the user test.- Throws:
IOException
- Signals that an I/O exception has occurred.
-
checkNonExistentReviewer
Check non existent reviewer.- Throws:
IOException
- Signals that an I/O exception has occurred.
-
checkNonExistentAuthor
Check non existent author.- Throws:
IOException
- Signals that an I/O exception has occurred.
-
checkPullRequestReviewer
Check pull request reviewer.- Throws:
IOException
- Signals that an I/O exception has occurred.
-
reactions
Create/Delete reaction for pull requests.- Throws:
Exception
- the exception
-
refreshFromSearchResults
Test refreshing a PR coming from the search results.- Throws:
Exception
- the exception
-
getRepository
Gets the repository.- Returns:
- the repository
- Throws:
IOException
- Signals that an I/O exception has occurred.
-