java.lang.Object
org.kohsuke.github.AbstractGitHubWireMockTest
org.kohsuke.github.GHBranchProtectionTest
The Class GHBranchProtectionTest.
-
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 TypeMethodDescriptionvoidsetUp()Sets the up.voidChecks with app ids are being populatedvoidTest disable protection only.voidTest enable branch protections.voidTest enable protection only.voidTest enable require reviews only.voidTest get protection.voidTest signed 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
-
GHBranchProtectionTest
public GHBranchProtectionTest()Create default GHBranchProtectionTest instance
-
-
Method Details
-
setUp
Sets the up.- Throws:
Exception- the exception
-
testChecksWithAppIds
Checks with app ids are being populated- Throws:
Exception- the exception
-
testDisableProtectionOnly
Test disable protection only.- Throws:
Exception- the exception
-
testEnableBranchProtections
Test enable branch protections.- Throws:
Exception- the exception
-
testEnableProtectionOnly
Test enable protection only.- Throws:
Exception- the exception
-
testEnableRequireReviewsOnly
Test enable require reviews only.- Throws:
Exception- the exception
-
testGetProtection
Test get protection.- Throws:
Exception- the exception
-
testSignedCommits
Test signed commits.- Throws:
Exception- the exception
-