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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cleanup()
Cleanup.void
setUp()
Sets the up.void
Test CRUD content.void
Test get directory content.void
Test get directory content trailing slash.void
Test get empty file content.void
Test get file content.void
Test get file content with non ascii path.void
Test get file content with symlink.void
Test get repository.void
Test get repository created from a template repositoryvoid
Test MIME long.void
Test MIME longer.void
Test 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
-
testGetRepository
Test get repository.- Throws:
Exception
- the exception
-
testGetRepositoryWithTemplateRepositoryInfo
Test get repository created from a template repository- Throws:
Exception
- the exception
-
testGetFileContent
Test get file content.- Throws:
Exception
- the exception
-
testGetEmptyFileContent
Test get empty file 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
-
testCRUDContent
Test CRUD content.- Throws:
Exception
- the exception
-
testMIMESmall
Test MIME small.- Throws:
IOException
- Signals that an I/O exception has occurred.
-
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.
-
testGetFileContentWithNonAsciiPath
Test get file content with non ascii path.- Throws:
Exception
- the exception
-
testGetFileContentWithSymlink
Test get file content with symlink.- Throws:
Exception
- the exception
-