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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setUp()
Sets the up.void
Checks with app ids are being populatedvoid
Test disable protection only.void
Test enable branch protections.void
Test enable protection only.void
Test enable require reviews only.void
Test get protection.void
Test 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
-
testEnableBranchProtections
Test enable branch protections.- Throws:
Exception
- the exception
-
testEnableProtectionOnly
Test enable protection only.- Throws:
Exception
- the exception
-
testDisableProtectionOnly
Test disable protection only.- Throws:
Exception
- the exception
-
testEnableRequireReviewsOnly
Test enable require reviews only.- Throws:
Exception
- the exception
-
testSignedCommits
Test signed commits.- Throws:
Exception
- the exception
-
testChecksWithAppIds
Checks with app ids are being populated- Throws:
Exception
- the exception
-
testGetProtection
Test get protection.- Throws:
Exception
- the exception
-