-
Method Summary
Starts mocking the fetching of a configuration file from the GitHub repository of an event.
Starts mocking the fetching of a configuration file from a given GitHub repository mock.
default void
Deprecated, for removal: This API element is subject to removal in a future version.
default void
Methods inherited from interface io.quarkiverse.githubapp.testing.dsl.GitHubMockContext
applicationClient, client, ghObject, ghObjects, graphQLClient, installationClient, installationGraphQLClient, issue, issueComment, pullRequest, repository, team
-
Method Details
-
configFileFromClasspath
Deprecated, for removal: This API element is subject to removal in a future version.
Mocks the fetching of a configuration file from the GitHub repository of an event,
using a file from the classpath as stubbed content.
- Parameters:
pathInRepository - The path of the file passed to ConfigFile.value().
pathInClasspath - The path of the content to use in the classpath.
- Throws:
IOException - If reading the content from the classpath fails.
- See Also:
-
-
configFileFromString
Deprecated.
Mocks the fetching of a configuration file from the GitHub repository of an event,
using a given string as stubbed content.
- Parameters:
pathInRepository - The path of the file passed to ConfigFile.value().
configFile - The content of the configuration file as a string.
- See Also:
-
-
configFile
Starts mocking the fetching of a configuration file from the GitHub repository of an event.
- Parameters:
pathInRepository - The path of the file passed to ConfigFile.value().
- Returns:
- A context to set the stubbed content of the file.
- See Also:
-
-
configFile(pathInRepository).fromClasspath(pathInClassPath)instead.