Package org.kohsuke.github
Class GitHubConnectionTest
- java.lang.Object
-
- org.kohsuke.github.AbstractGitHubWireMockTest
-
- org.kohsuke.github.GitHubConnectionTest
-
public class GitHubConnectionTest extends AbstractGitHubWireMockTest
Unit test forGitHub.
-
-
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 Constructor Description GitHubConnectionTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidtestAnonymous()voidtestGitHubBuilderFromCredentialsWithEnvironment()voidtestGitHubBuilderFromCredentialsWithPropertyFile()voidtestGitHubBuilderFromCustomEnvironment()voidtestGitHubBuilderFromEnvironment()voidtestGithubBuilderWithAppInstallationToken()voidtestGitHubIsApiUrlValid()voidtestGitHubServerWithHttp()voidtestGitHubServerWithHttps()voidtestGitHubServerWithoutServer()voidtestOffline()-
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
-
-
-
-
Method Detail
-
testGitHubServerWithHttps
public void testGitHubServerWithHttps() throws Exception- Throws:
Exception
-
testGitHubServerWithoutServer
public void testGitHubServerWithoutServer() throws Exception- Throws:
Exception
-
testGitHubBuilderFromEnvironment
public void testGitHubBuilderFromEnvironment() throws IOException- Throws:
IOException
-
testGitHubBuilderFromCustomEnvironment
public void testGitHubBuilderFromCustomEnvironment() throws IOException- Throws:
IOException
-
testGitHubBuilderFromCredentialsWithEnvironment
public void testGitHubBuilderFromCredentialsWithEnvironment() throws IOException- Throws:
IOException
-
testGitHubBuilderFromCredentialsWithPropertyFile
public void testGitHubBuilderFromCredentialsWithPropertyFile() throws IOException- Throws:
IOException
-
testAnonymous
public void testAnonymous() throws IOException- Throws:
IOException
-
testGithubBuilderWithAppInstallationToken
public void testGithubBuilderWithAppInstallationToken() throws Exception- Throws:
Exception
-
testGitHubIsApiUrlValid
public void testGitHubIsApiUrlValid() throws IOException- Throws:
IOException
-
-