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 creating content with custom author and committer via GHContentBuilder.voidTest creating content with custom author and committer with date via GHContentBuilder.voidTest CRUD content.voidTest deleting content with custom author and committer via GHContentDeleter.voidTest deleting content with custom author and committer with date via GHContentDeleter.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.voidTest updating content with custom author and committer via GHContentUpdater.voidTest updating content with custom author and committer with date via GHContentUpdater.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
-
testCreateWithAuthorCommitter
Test creating content with custom author and committer via GHContentBuilder.- Throws:
Exception- the exception
-
testCreateWithAuthorCommitterAndDate
Test creating content with custom author and committer with date via GHContentBuilder.- Throws:
Exception- the exception
-
testDeleteWithAuthorCommitter
Test deleting content with custom author and committer via GHContentDeleter.- Throws:
Exception- the exception
-
testDeleteWithAuthorCommitterAndDate
Test deleting content with custom author and committer with date via GHContentDeleter.- 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.
-
testUpdateWithAuthorCommitter
Test updating content with custom author and committer via GHContentUpdater.- Throws:
Exception- the exception
-
testUpdateWithAuthorCommitterAndDate
Test updating content with custom author and committer with date via GHContentUpdater.- Throws:
Exception- the exception
-