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 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
-
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
-