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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCommit date not null.voidCommit signature verification.voidgetFiles()Test get files.voidTests the commit message.protected GHRepositoryGets the repository.voidLast status.voidList branches where head.voidList branches where head 2 heads.voidList branches where head of commit with head nowhere.voidTest list files where there are more than 300 files in a commit.voidTest list files where there are less than 300 files in a commit.voidList pull requests.voidList pull requests of commit with 2 pull requests.voidList pull requests of not included commit.voidTest 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
-
commitDateNotNull
Commit date not null.- Throws:
Exception- the exception
-
commitSignatureVerification
Commit signature verification.- Throws:
Exception- the exception
-
getFiles
Test get files.- Throws:
Exception- the exception
-
getMessage
Tests the commit message.- Throws:
Exception- the exception
-
lastStatus
Last status.- Throws:
IOException- Signals that an I/O exception has occurred.
-
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
-
listFilesWhereCommitHasLargeChange
Test list files where there are more than 300 files in a commit.- Throws:
Exception- the exception
-
listFilesWhereCommitHasSmallChange
Test list files where there are less than 300 files in a 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
-
listPullRequestsOfNotIncludedCommit
List pull requests of not included commit.- Throws:
Exception- the exception
-
testQueryCommits
Test query commits.- Throws:
Exception- the exception
-
getRepository
Gets the repository.- Returns:
- the repository
- Throws:
IOException- Signals that an I/O exception has occurred.
-