Class AppTest


public class AppTest extends AbstractGitHubWireMockTest
Unit test for simple App.
  • Constructor Details

    • AppTest

      public AppTest()
      Create default AppTest instance
  • Method Details

    • testRepoCRUD

      public void testRepoCRUD() throws Exception
      Test repo CRUD.
      Throws:
      Exception - the exception
    • testRepositoryWithAutoInitializationCRUD

      public void testRepositoryWithAutoInitializationCRUD() throws Exception
      Test repository with auto initialization CRUD.
      Throws:
      Exception - the exception
    • testCredentialValid

      public void testCredentialValid() throws IOException
      Test credential valid.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testCredentialValidEnterprise

      public void testCredentialValidEnterprise() throws IOException
      Test credential valid enterprise.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testIssueWithNoComment

      public void testIssueWithNoComment() throws IOException
      Test issue with no comment.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testIssueWithComment

      public void testIssueWithComment() throws IOException
      Test issue with comment.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testCreateIssue

      public void testCreateIssue() throws IOException
      Test create issue.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testCreateAndListDeployments

      public void testCreateAndListDeployments() throws IOException
      Test create and list deployments.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testGetDeploymentStatuses

      public void testGetDeploymentStatuses() throws IOException
      Test get deployment statuses.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testGetIssues

      public void testGetIssues() throws Exception
      Test get issues.
      Throws:
      Exception - the exception
    • testQueryIssues

      public void testQueryIssues() throws IOException
      Test query issues.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testListIssues

      public void testListIssues() throws IOException
      Test list issues.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testRateLimit

      public void testRateLimit() throws IOException
      Test rate limit.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testMyOrganizations

      public void testMyOrganizations() throws IOException
      Test my organizations.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testMyOrganizationsContainMyTeams

      public void testMyOrganizationsContainMyTeams() throws IOException
      Test my organizations contain my teams.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testMyTeamsShouldIncludeMyself

      public void testMyTeamsShouldIncludeMyself() throws IOException
      Test my teams should include myself.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testUserPublicOrganizationsWhenThereAreSome

      public void testUserPublicOrganizationsWhenThereAreSome() throws IOException
      Test user public organizations when there are some.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testUserPublicOrganizationsWhenThereAreNone

      public void testUserPublicOrganizationsWhenThereAreNone() throws IOException
      Test user public organizations when there are none.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testShouldFetchTeamFromOrganization

      public void testShouldFetchTeamFromOrganization() throws Exception
      Test should fetch team from organization.
      Throws:
      Exception - the exception
    • testFetchPullRequest

      public void testFetchPullRequest() throws Exception
      Test fetch pull request.
      Throws:
      Exception - the exception
    • testFetchPullRequestAsList

      public void testFetchPullRequestAsList() throws Exception
      Test fetch pull request as list.
      Throws:
      Exception - the exception
    • testGetAppInstallations

      public void testGetAppInstallations() throws Exception
      Test get app installations.
      Throws:
      Exception - the exception
    • testRepoPermissions

      public void testRepoPermissions() throws Exception
      Test repo permissions.
      Throws:
      Exception - the exception
    • testGetMyself

      public void testGetMyself() throws Exception
      Test get myself.
      Throws:
      Exception - the exception
    • testPublicKeys

      public void testPublicKeys() throws Exception
      Test public keys.
      Throws:
      Exception - the exception
    • testOrgFork

      public void testOrgFork() throws Exception
      Test org fork.
      Throws:
      Exception - the exception
    • testGetTeamsForRepo

      public void testGetTeamsForRepo() throws Exception
      Test get teams for repo.
      Throws:
      Exception - the exception
    • testMembership

      public void testMembership() throws Exception
      Test membership.
      Throws:
      Exception - the exception
    • testMemberOrgs

      public void testMemberOrgs() throws Exception
      Test member orgs.
      Throws:
      Exception - the exception
    • testOrgTeams

      public void testOrgTeams() throws Exception
      Test org teams.
      Throws:
      Exception - the exception
    • testOrgTeamByName

      public void testOrgTeamByName() throws Exception
      Test org team by name.
      Throws:
      Exception - the exception
    • testOrgTeamBySlug

      public void testOrgTeamBySlug() throws Exception
      Test org team by slug.
      Throws:
      Exception - the exception
    • testCommit

      public void testCommit() throws Exception
      Test commit.
      Throws:
      Exception - the exception
    • testListCommits

      public void testListCommits() throws Exception
      Test list commits.
      Throws:
      Exception - the exception
    • testBranches

      public void testBranches() throws Exception
      Test branches.
      Throws:
      Exception - the exception
    • testCommitComment

      public void testCommitComment() throws Exception
      Test commit comment.
      Throws:
      Exception - the exception
    • testCreateCommitComment

      public void testCreateCommitComment() throws Exception
      Test create commit comment.
      Throws:
      Exception - the exception
    • tryHook

      public void tryHook() throws Exception
      Try hook.
      Throws:
      Exception - the exception
    • testEventApi

      public void testEventApi() throws Exception
      Test event api.
      Throws:
      Exception - the exception
    • testUserPublicEventApi

      public void testUserPublicEventApi() throws Exception
      Test user public event api.
      Throws:
      Exception - the exception
    • testGetEmails

      public void testGetEmails() throws IOException
      Test getEmails.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testApp

      public void testApp() throws IOException
      Test app.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testOrgRepositories

      public void testOrgRepositories() throws IOException
      Test org repositories.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testOrganization

      public void testOrganization() throws IOException
      Test organization.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testCommitStatus

      public void testCommitStatus() throws Exception
      Test commit status.
      Throws:
      Exception - the exception
    • testCommitShortInfo

      public void testCommitShortInfo() throws Exception
      Test commit short info.
      Throws:
      Exception - the exception
    • testPullRequestPopulate

      public void testPullRequestPopulate() throws Exception
      Test pull request populate.
      Throws:
      Exception - the exception
    • testCheckMembership

      public void testCheckMembership() throws Exception
      Test check membership.
      Throws:
      Exception - the exception
    • testRef

      public void testRef() throws IOException
      Test ref.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • directoryListing

      public void directoryListing() throws IOException
      Directory listing.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testAddDeployKey

      public void testAddDeployKey() throws IOException
      Test add deploy key.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testAddDeployKeyAsReadOnly

      public void testAddDeployKeyAsReadOnly() throws IOException
      Test add deploy key read-only.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testCommitStatusContext

      public void testCommitStatusContext() throws IOException
      Test commit status context.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testMemberPagenation

      public void testMemberPagenation() throws IOException
      Test member pagenation.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testCommitSearch

      public void testCommitSearch() throws IOException
      Test commit search.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testIssueSearch

      public void testIssueSearch() throws IOException
      Test issue search.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testPullRequestSearch

      public void testPullRequestSearch() throws Exception
      Test searching for pull requests.
      Throws:
      IOException - the exception
      Exception
    • testReadme

      public void testReadme() throws IOException
      Test readme.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testTrees

      public void testTrees() throws IOException
      Test trees.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testTreesRecursive

      public void testTreesRecursive() throws IOException
      Test trees recursive.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testRepoLabel

      public void testRepoLabel() throws IOException
      Test repo label.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testSubscribers

      public void testSubscribers() throws IOException
      Test subscribers.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • notifications

      public void notifications() throws Exception
      Notifications.
      Throws:
      Exception - the exception
    • checkToString

      public void checkToString() throws Exception
      Check to string.
      Throws:
      Exception - the exception
    • reactions

      public void reactions() throws Exception
      Reactions.
      Throws:
      Exception - the exception
    • listOrgMemberships

      public void listOrgMemberships() throws Exception
      List org memberships.
      Throws:
      Exception - the exception
    • blob

      public void blob() throws Exception
      Blob.
      Throws:
      Exception - the exception