java.lang.Object
org.kohsuke.github.AbstractGitHubWireMockTest
org.kohsuke.github.GitHubConnectionTest
Unit test for
GitHub
.-
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
Test anonymous.void
Test git hub builder from credentials with environment.void
Test git hub builder from credentials with property file.void
Test git hub builder from environment.void
Test github builder with app installation token.void
Test git hub is api url valid.void
Test git hub O auth user query.void
Test git hub server with http.void
Test git hub server with https.void
Test git hub server without server.void
Test offline.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
-
GitHubConnectionTest
public GitHubConnectionTest()Instantiates a new git hub connection test.
-
-
Method Details
-
testOffline
Test offline.- Throws:
Exception
- the exception
-
testGitHubServerWithHttp
Test git hub server with http.- Throws:
Exception
- the exception
-
testGitHubServerWithHttps
Test git hub server with https.- Throws:
Exception
- the exception
-
testGitHubServerWithoutServer
Test git hub server without server.- Throws:
Exception
- the exception
-
testGitHubBuilderFromEnvironment
Test git hub builder from environment.- Throws:
IOException
- Signals that an I/O exception has occurred.
-
testGitHubBuilderFromCredentialsWithEnvironment
Test git hub builder from credentials with environment.- Throws:
IOException
- Signals that an I/O exception has occurred.
-
testGitHubBuilderFromCredentialsWithPropertyFile
Test git hub builder from credentials with property file.- Throws:
IOException
- Signals that an I/O exception has occurred.
-
testAnonymous
Test anonymous.- Throws:
IOException
- Signals that an I/O exception has occurred.
-
testGithubBuilderWithAppInstallationToken
Test github builder with app installation token.- Throws:
Exception
- the exception
-
testGitHubIsApiUrlValid
Test git hub is api url valid.- Throws:
IOException
- Signals that an I/O exception has occurred.
-
testGitHubOAuthUserQuery
Test git hub O auth user query.- Throws:
IOException
- Signals that an I/O exception has occurred.
-