java.lang.Object
org.kohsuke.github.AbstractGitHubWireMockTest
org.kohsuke.github.GHContentIntegrationTest
Integration test for
GHContent.-
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 TypeMethodDescriptionvoidcleanup()Cleanup.voidsetUp()Sets the up.voidTest CRUD content.voidTest get directory content.voidTest get directory content trailing slash.voidTest get empty file content.voidTest get file content.voidTest get file content with non ascii path.voidTest get file content with symlink.voidTest get repository.voidTest get repository created from a template repositoryvoidTest MIME long.voidTest MIME longer.voidTest MIME small.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
-
GHContentIntegrationTest
public GHContentIntegrationTest()Create default GHContentIntegrationTest instance
-
-
Method Details
-
cleanup
Cleanup.- Throws:
Exception- the exception
-
setUp
Sets the up.- Throws:
Exception- the exception
-
testCRUDContent
Test CRUD content.- Throws:
Exception- the exception
-
testGetDirectoryContent
Test get directory content.- Throws:
Exception- the exception
-
testGetDirectoryContentTrailingSlash
Test get directory content trailing slash.- Throws:
Exception- the exception
-
testGetEmptyFileContent
Test get empty file content.- Throws:
Exception- the exception
-
testGetFileContent
Test get file content.- Throws:
Exception- the exception
-
testGetFileContentWithNonAsciiPath
Test get file content with non ascii path.- Throws:
Exception- the exception
-
testGetFileContentWithSymlink
Test get file content with symlink.- Throws:
Exception- the exception
-
testGetRepository
Test get repository.- Throws:
Exception- the exception
-
testGetRepositoryWithTemplateRepositoryInfo
Test get repository created from a template repository- Throws:
Exception- the exception
-
testMIMELong
Test MIME long.- Throws:
IOException- Signals that an I/O exception has occurred.
-
testMIMELonger
Test MIME longer.- Throws:
IOException- Signals that an I/O exception has occurred.
-
testMIMESmall
Test MIME small.- Throws:
IOException- Signals that an I/O exception has occurred.
-