Class CommitTest


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

    • CommitTest

      public CommitTest()
      Create default CommitTest instance
  • Method Details

    • lastStatus

      public void lastStatus() throws IOException
      Last status.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • getFiles

      public void getFiles() throws Exception
      Test get files.
      Throws:
      Exception - the exception
    • listFilesWhereCommitHasSmallChange

      public void listFilesWhereCommitHasSmallChange() throws Exception
      Test list files where there are less than 300 files in a commit.
      Throws:
      Exception - the exception
    • listFilesWhereCommitHasLargeChange

      public void listFilesWhereCommitHasLargeChange() throws Exception
      Test list files where there are more than 300 files in a commit.
      Throws:
      Exception - the exception
    • getMessage

      public void getMessage() throws Exception
      Tests the commit message.
      Throws:
      Exception - the exception
    • testQueryCommits

      public void testQueryCommits() throws Exception
      Test query commits.
      Throws:
      Exception - the exception
    • listPullRequestsOfNotIncludedCommit

      public void listPullRequestsOfNotIncludedCommit() throws Exception
      List pull requests of not included commit.
      Throws:
      Exception - the exception
    • listPullRequests

      public void listPullRequests() throws Exception
      List pull requests.
      Throws:
      Exception - the exception
    • listPullRequestsOfCommitWith2PullRequests

      public void listPullRequestsOfCommitWith2PullRequests() throws Exception
      List pull requests of commit with 2 pull requests.
      Throws:
      Exception - the exception
    • listBranchesWhereHead

      public void listBranchesWhereHead() throws Exception
      List branches where head.
      Throws:
      Exception - the exception
    • listBranchesWhereHead2Heads

      public void listBranchesWhereHead2Heads() throws Exception
      List branches where head 2 heads.
      Throws:
      Exception - the exception
    • listBranchesWhereHeadOfCommitWithHeadNowhere

      public void listBranchesWhereHeadOfCommitWithHeadNowhere() throws Exception
      List branches where head of commit with head nowhere.
      Throws:
      Exception - the exception
    • commitSignatureVerification

      public void commitSignatureVerification() throws Exception
      Commit signature verification.
      Throws:
      Exception - the exception
    • commitDateNotNull

      public void commitDateNotNull() throws Exception
      Commit date not null.
      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.