Class GitHubConnectionTest

java.lang.Object
org.kohsuke.github.AbstractGitHubWireMockTest
org.kohsuke.github.GitHubConnectionTest

public class GitHubConnectionTest extends AbstractGitHubWireMockTest
Unit test for GitHub.
  • Constructor Details

    • GitHubConnectionTest

      public GitHubConnectionTest()
      Instantiates a new git hub connection test.
  • Method Details

    • testOffline

      public void testOffline() throws Exception
      Test offline.
      Throws:
      Exception - the exception
    • testGitHubServerWithHttp

      public void testGitHubServerWithHttp() throws Exception
      Test git hub server with http.
      Throws:
      Exception - the exception
    • testGitHubServerWithHttps

      public void testGitHubServerWithHttps() throws Exception
      Test git hub server with https.
      Throws:
      Exception - the exception
    • testGitHubServerWithoutServer

      public void testGitHubServerWithoutServer() throws Exception
      Test git hub server without server.
      Throws:
      Exception - the exception
    • testGitHubBuilderFromEnvironment

      public void testGitHubBuilderFromEnvironment() throws IOException
      Test git hub builder from environment.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testGitHubBuilderFromCustomEnvironment

      public void testGitHubBuilderFromCustomEnvironment() throws IOException
      Test git hub builder from custom environment.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testGitHubBuilderFromCredentialsWithEnvironment

      public void testGitHubBuilderFromCredentialsWithEnvironment() throws IOException
      Test git hub builder from credentials with environment.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testGitHubBuilderFromCredentialsWithPropertyFile

      public void testGitHubBuilderFromCredentialsWithPropertyFile() throws IOException
      Test git hub builder from credentials with property file.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testAnonymous

      public void testAnonymous() throws IOException
      Test anonymous.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testGithubBuilderWithAppInstallationToken

      public void testGithubBuilderWithAppInstallationToken() throws Exception
      Test github builder with app installation token.
      Throws:
      Exception - the exception
    • testGitHubIsApiUrlValid

      public void testGitHubIsApiUrlValid() throws IOException
      Test git hub is api url valid.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testGitHubOAuthUserQuery

      public void testGitHubOAuthUserQuery() throws IOException
      Test git hub O auth user query.
      Throws:
      IOException - Signals that an I/O exception has occurred.