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