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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidTest anonymous.voidTest git hub builder from credentials with environment.voidTest git hub builder from credentials with property file.voidTest git hub builder from environment.voidTest github builder with app installation token.voidTest git hub is api url valid.voidTest git hub O auth user query.voidTest git hub server with http.voidTest git hub server with https.voidTest git hub server without server.voidTest 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
-
testAnonymous
public void testAnonymous()Test anonymous. -
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.
-
testGitHubBuilderFromEnvironment
Test git hub builder from environment.- Throws:
IOException- Signals that an I/O exception has occurred.
-
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.
-
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
-
testGithubBuilderWithAppInstallationToken
Test github builder with app installation token.- Throws:
Exception- the exception
-
testOffline
public void testOffline()Test offline.
-