java.lang.Object
org.kohsuke.github.AbstractGitHubWireMockTest
org.kohsuke.github.CommitTest
The Class CommitTest.
- 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
Commit date not null.void
Commit signature verification.void
getFiles()
Test get files.void
Tests the commit message.protected GHRepository
Gets the repository.void
Last status.void
List branches where head.void
List branches where head 2 heads.void
List branches where head of commit with head nowhere.void
Test list files where there are more than 300 files in a commit.void
Test list files where there are less than 300 files in a commit.void
List pull requests.void
List pull requests of commit with 2 pull requests.void
List pull requests of not included commit.void
Test query commits.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
-
CommitTest
public CommitTest()Create default CommitTest instance
-
-
Method Details
-
lastStatus
Last status.- Throws:
IOException
- Signals that an I/O exception has occurred.
-
getFiles
Test get files.- Throws:
Exception
- the exception
-
listFilesWhereCommitHasSmallChange
Test list files where there are less than 300 files in a commit.- Throws:
Exception
- the exception
-
listFilesWhereCommitHasLargeChange
Test list files where there are more than 300 files in a commit.- Throws:
Exception
- the exception
-
getMessage
Tests the commit message.- Throws:
Exception
- the exception
-
testQueryCommits
Test query commits.- Throws:
Exception
- the exception
-
listPullRequestsOfNotIncludedCommit
List pull requests of not included commit.- Throws:
Exception
- the exception
-
listPullRequests
List pull requests.- Throws:
Exception
- the exception
-
listPullRequestsOfCommitWith2PullRequests
List pull requests of commit with 2 pull requests.- Throws:
Exception
- the exception
-
listBranchesWhereHead
List branches where head.- Throws:
Exception
- the exception
-
listBranchesWhereHead2Heads
List branches where head 2 heads.- Throws:
Exception
- the exception
-
listBranchesWhereHeadOfCommitWithHeadNowhere
List branches where head of commit with head nowhere.- Throws:
Exception
- the exception
-
commitSignatureVerification
Commit signature verification.- Throws:
Exception
- the exception
-
commitDateNotNull
Commit date not null.- Throws:
Exception
- the exception
-
getRepository
Gets the repository.- Returns:
- the repository
- Throws:
IOException
- Signals that an I/O exception has occurred.
-