Class GHPullRequestTest


public class GHPullRequestTest extends AbstractGitHubWireMockTest
The Class GHPullRequestTest.
Author:
Kohsuke Kawaguchi
  • Constructor Details

    • GHPullRequestTest

      public GHPullRequestTest()
      Create default GHPullRequestTest instance
  • Method Details

    • cleanUp

      public void cleanUp() throws Exception
      Clean up.
      Throws:
      Exception - the exception
    • createPullRequest

      public void createPullRequest() throws Exception
      Creates the pull request.
      Throws:
      Exception - the exception
    • createDraftPullRequest

      public void createDraftPullRequest() throws Exception
      Creates the draft pull request.
      Throws:
      Exception - the exception
    • pullRequestComment

      public void pullRequestComment() throws Exception
      Pull request comment.
      Throws:
      Exception - the exception
    • getListOfCommits

      public void getListOfCommits() throws Exception
      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

      public void closePullRequest() throws Exception
      Close pull request.
      Throws:
      Exception - the exception
    • pullRequestReviews

      public void pullRequestReviews() throws Exception
      Pull request reviews.
      Throws:
      Exception - the exception
    • commentsInPullRequestReviewBuilder

      public void commentsInPullRequestReviewBuilder()
      Comments objects in pull request review builder.
    • pullRequestReviewComments

      public void pullRequestReviewComments() throws Exception
      Pull request review comments.
      Throws:
      Exception - the exception
    • testPullRequestReviewRequests

      public void testPullRequestReviewRequests() throws Exception
      Test pull request review requests.
      Throws:
      Exception - the exception
    • testPullRequestTeamReviewRequests

      public void testPullRequestTeamReviewRequests() throws Exception
      Test pull request team review requests.
      Throws:
      Exception - the exception
    • mergeCommitSHA

      public void mergeCommitSHA() throws Exception
      Merge commit SHA.
      Throws:
      Exception - the exception
    • setBaseBranch

      public void setBaseBranch() throws Exception
      Sets the base branch.
      Throws:
      Exception - the exception
    • setBaseBranchNonExisting

      public void setBaseBranchNonExisting() throws Exception
      Sets the base branch non existing.
      Throws:
      Exception - the exception
    • updateOutdatedBranchesUnexpectedHead

      public void updateOutdatedBranchesUnexpectedHead() throws Exception
      Update outdated branches unexpected head.
      Throws:
      Exception - the exception
    • updateOutdatedBranches

      public void updateOutdatedBranches() throws Exception
      Update outdated branches.
      Throws:
      Exception - the exception
    • squashMerge

      public void squashMerge() throws Exception
      Squash merge.
      Throws:
      Exception - the exception
    • updateContentSquashMerge

      public void updateContentSquashMerge() throws Exception
      Update content squash merge.
      Throws:
      Exception - the exception
    • queryPullRequestsQualifiedHead

      public void queryPullRequestsQualifiedHead() throws Exception
      Query pull requests qualified head.
      Throws:
      Exception - the exception
    • queryPullRequestsUnqualifiedHead

      public void queryPullRequestsUnqualifiedHead() throws Exception
      Query pull requests unqualified head.
      Throws:
      Exception - the exception
    • setLabels

      public void setLabels() throws Exception
      Sets the labels.
      Throws:
      Exception - the exception
    • addLabels

      public void addLabels() throws Exception
      Adds the labels.
      Throws:
      Exception - the exception
    • addLabelsConcurrencyIssue

      public void addLabelsConcurrencyIssue() throws Exception
      Adds the labels concurrency issue.
      Throws:
      Exception - the exception
    • removeLabels

      public void removeLabels() throws Exception
      Removes the labels.
      Throws:
      Exception - the exception
    • setAssignee

      public void setAssignee() throws Exception
      Sets the assignee.
      Throws:
      Exception - the exception
    • getUserTest

      public void getUserTest() throws IOException
      Gets the user test.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • checkNonExistentReviewer

      public void checkNonExistentReviewer() throws IOException
      Check non existent reviewer.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • checkNonExistentAuthor

      public void checkNonExistentAuthor() throws IOException
      Check non existent author.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • checkPullRequestReviewer

      public void checkPullRequestReviewer() throws IOException
      Check pull request reviewer.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • reactions

      public void reactions() throws Exception
      Create/Delete reaction for pull requests.
      Throws:
      Exception - the exception
    • refreshFromSearchResults

      public void refreshFromSearchResults() throws Exception
      Test refreshing a PR coming from the search results.
      Throws:
      Exception - the exception
    • getRepository

      protected GHRepository getRepository() throws IOException
      Gets the repository.
      Returns:
      the repository
      Throws:
      IOException - Signals that an I/O exception has occurred.