java.lang.Object
org.kohsuke.github.AbstractGitHubWireMockTest
org.kohsuke.github.AppTest
Unit test for simple App.
-
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 TypeMethodDescriptionvoidblob()Blob.voidCheck to string.voidDirectory listing.voidList org memberships.voidNotifications.voidReactions.voidTest add deploy key.voidTest add deploy key read-only.voidtestApp()Test app.voidTest branches.voidTest check membership.voidTest commit.voidTest commit comment.voidTest commit search.voidTest commit short info.voidTest commit status.voidTest commit status context.voidTest create and list deployments.voidTest create commit comment.voidTest create issue.voidTest credential valid.voidTest credential valid enterprise.voidTest event api.voidTest fetch pull request.voidTest fetch pull request as list.voidTest get app installations.voidTest get deployment statuses.voidTest getEmails.voidTest get issues.voidTest get myself.voidTest get teams for repo.voidTest issue search.voidTest issue with comment.voidTest issue with no comment.voidTest list commits.voidTest list issues.voidTest member orgs.voidTest member pagenation.voidTest membership.voidTest my organizations.voidTest my organizations contain my teams.voidTest my teams should include myself.voidTest organization.voidTest org fork.voidTest org repositories.voidTest org team by name.voidTest org team by slug.voidTest org teams.voidTest public keys.voidTest pull request populate.voidTest searching for pull requests.voidTest query issues.voidTest rate limit.voidTest readme.voidtestRef()Test ref.voidTest repo CRUD.voidTest repo label.voidTest repo permissions.voidTest repository with auto initialization CRUD.voidTest should fetch team from organization.voidTest subscribers.voidTest trees.voidTest trees recursive.voidTest user public event api.voidTest user public organizations when there are none.voidTest user public organizations when there are some.voidtryHook()Try hook.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
-
AppTest
public AppTest()Create default AppTest instance
-
-
Method Details
-
blob
Blob.- Throws:
Exception- the exception
-
checkToString
Check to string.- Throws:
Exception- the exception
-
directoryListing
Directory listing.- Throws:
IOException- Signals that an I/O exception has occurred.
-
listOrgMemberships
List org memberships.- Throws:
Exception- the exception
-
notifications
Notifications.- Throws:
Exception- the exception
-
reactions
Reactions.- Throws:
Exception- the exception
-
testAddDeployKey
Test add deploy key.- Throws:
IOException- Signals that an I/O exception has occurred.
-
testAddDeployKeyAsReadOnly
Test add deploy key read-only.- Throws:
IOException- Signals that an I/O exception has occurred.
-
testApp
public void testApp()Test app. -
testBranches
Test branches.- Throws:
Exception- the exception
-
testCheckMembership
Test check membership.- Throws:
Exception- the exception
-
testCommit
Test commit.- Throws:
Exception- the exception
-
testCommitComment
Test commit comment.- Throws:
Exception- the exception
-
testCommitSearch
Test commit search.- Throws:
IOException- Signals that an I/O exception has occurred.
-
testCommitShortInfo
Test commit short info.- Throws:
Exception- the exception
-
testCommitStatus
Test commit status.- Throws:
Exception- the exception
-
testCommitStatusContext
Test commit status context.- Throws:
IOException- Signals that an I/O exception has occurred.
-
testCreateAndListDeployments
Test create and list deployments.- Throws:
IOException- Signals that an I/O exception has occurred.
-
testCreateCommitComment
Test create commit comment.- Throws:
Exception- the exception
-
testCreateIssue
Test create issue.- Throws:
IOException- Signals that an I/O exception has occurred.
-
testCredentialValid
Test credential valid.- Throws:
IOException- Signals that an I/O exception has occurred.
-
testCredentialValidEnterprise
Test credential valid enterprise.- Throws:
IOException- Signals that an I/O exception has occurred.
-
testEventApi
Test event api.- Throws:
Exception- the exception
-
testFetchPullRequest
Test fetch pull request.- Throws:
Exception- the exception
-
testFetchPullRequestAsList
Test fetch pull request as list.- Throws:
Exception- the exception
-
testGetAppInstallations
Test get app installations.- Throws:
Exception- the exception
-
testGetDeploymentStatuses
Test get deployment statuses.- Throws:
IOException- Signals that an I/O exception has occurred.
-
testGetEmails
Test getEmails.- Throws:
IOException- Signals that an I/O exception has occurred.
-
testGetIssues
Test get issues.- Throws:
Exception- the exception
-
testGetMyself
Test get myself.- Throws:
Exception- the exception
-
testGetTeamsForRepo
Test get teams for repo.- Throws:
Exception- the exception
-
testIssueSearch
public void testIssueSearch()Test issue search. -
testIssueWithComment
Test issue with comment.- Throws:
IOException- Signals that an I/O exception has occurred.
-
testIssueWithNoComment
Test issue with no comment.- Throws:
IOException- Signals that an I/O exception has occurred.
-
testListCommits
Test list commits.- Throws:
Exception- the exception
-
testListIssues
Test list issues.- Throws:
IOException- Signals that an I/O exception has occurred.
-
testMemberOrgs
Test member orgs.- Throws:
Exception- the exception
-
testMemberPagenation
Test member pagenation.- Throws:
IOException- Signals that an I/O exception has occurred.
-
testMembership
Test membership.- Throws:
Exception- the exception
-
testMyOrganizations
Test my organizations.- Throws:
IOException- Signals that an I/O exception has occurred.
-
testMyOrganizationsContainMyTeams
Test my organizations contain my teams.- Throws:
IOException- Signals that an I/O exception has occurred.
-
testMyTeamsShouldIncludeMyself
Test my teams should include myself.- Throws:
IOException- Signals that an I/O exception has occurred.
-
testOrgFork
Test org fork.- Throws:
Exception- the exception
-
testOrgRepositories
Test org repositories.- Throws:
IOException- Signals that an I/O exception has occurred.
-
testOrgTeamByName
Test org team by name.- Throws:
Exception- the exception
-
testOrgTeamBySlug
Test org team by slug.- Throws:
Exception- the exception
-
testOrgTeams
Test org teams.- Throws:
Exception- the exception
-
testOrganization
Test organization.- Throws:
IOException- Signals that an I/O exception has occurred.
-
testPublicKeys
Test public keys.- Throws:
Exception- the exception
-
testPullRequestPopulate
Test pull request populate.- Throws:
Exception- the exception
-
testPullRequestSearch
Test searching for pull requests.- Throws:
Exception- the exception
-
testQueryIssues
Test query issues.- Throws:
IOException- Signals that an I/O exception has occurred.
-
testRateLimit
Test rate limit.- Throws:
IOException- Signals that an I/O exception has occurred.
-
testReadme
Test readme.- Throws:
IOException- Signals that an I/O exception has occurred.
-
testRef
Test ref.- Throws:
IOException- Signals that an I/O exception has occurred.
-
testRepoCRUD
Test repo CRUD.- Throws:
Exception- the exception
-
testRepoLabel
Test repo label.- Throws:
IOException- Signals that an I/O exception has occurred.
-
testRepoPermissions
Test repo permissions.- Throws:
Exception- the exception
-
testRepositoryWithAutoInitializationCRUD
Test repository with auto initialization CRUD.- Throws:
Exception- the exception
-
testShouldFetchTeamFromOrganization
Test should fetch team from organization.- Throws:
Exception- the exception
-
testSubscribers
Test subscribers.- Throws:
IOException- Signals that an I/O exception has occurred.
-
testTrees
Test trees.- Throws:
IOException- Signals that an I/O exception has occurred.
-
testTreesRecursive
Test trees recursive.- Throws:
IOException- Signals that an I/O exception has occurred.
-
testUserPublicEventApi
Test user public event api.- Throws:
Exception- the exception
-
testUserPublicOrganizationsWhenThereAreNone
Test user public organizations when there are none.- Throws:
IOException- Signals that an I/O exception has occurred.
-
testUserPublicOrganizationsWhenThereAreSome
Test user public organizations when there are some.- Throws:
IOException- Signals that an I/O exception has occurred.
-
tryHook
Try hook.- Throws:
Exception- the exception
-