Interface GitHubMockContext
- All Known Subinterfaces:
GitHubMockSetupContext,GitHubMockVerificationContext
- All Known Implementing Classes:
GitHubMockContextImpl
public interface GitHubMockContext
-
Method Summary
Modifier and TypeMethodDescriptionorg.kohsuke.github.GitHubdefault org.kohsuke.github.GitHubclient(long installationId) Deprecated, for removal: This API element is subject to removal in a future version.<T extends org.kohsuke.github.GHObject>
TObject[]default io.smallrye.graphql.client.dynamic.api.DynamicGraphQLClientgraphQLClient(long installationId) Deprecated, for removal: This API element is subject to removal in a future version.UseinstallationGraphQLClient(long)instead.org.kohsuke.github.GitHubinstallationClient(long installationId) io.smallrye.graphql.client.dynamic.api.DynamicGraphQLClientinstallationGraphQLClient(long installationId) org.kohsuke.github.GHIssueissue(long id) org.kohsuke.github.GHIssueCommentissueComment(long id) org.kohsuke.github.GHPullRequestpullRequest(long id) org.kohsuke.github.GHRepositoryrepository(String fullName) org.kohsuke.github.GHTeamteam(long id)
-
Method Details
-
applicationClient
org.kohsuke.github.GitHub applicationClient()- Returns:
- The mock for the application client.
- See Also:
-
installationClient
org.kohsuke.github.GitHub installationClient(long installationId) - Parameters:
installationId- The identifier of the GitHub app installation.- Returns:
- The mock for the installation client.
- See Also:
-
client
Deprecated, for removal: This API element is subject to removal in a future version.UseinstallationClient(long)instead. This method will be removed in version 2 of this extension.- Parameters:
installationId- The identifier of the GitHub app installation.- Returns:
- The mock for the installation client.
- See Also:
-
installationGraphQLClient
io.smallrye.graphql.client.dynamic.api.DynamicGraphQLClient installationGraphQLClient(long installationId) - Parameters:
installationId- The identifier of the GitHub app installation.- Returns:
- The mock for the installation GraphQL client.
- See Also:
-
graphQLClient
@Deprecated(forRemoval=true) default io.smallrye.graphql.client.dynamic.api.DynamicGraphQLClient graphQLClient(long installationId) Deprecated, for removal: This API element is subject to removal in a future version.UseinstallationGraphQLClient(long)instead. This method will be removed in version 2 of this extension.- Parameters:
installationId- The identifier of the GitHub app installation.- Returns:
- The mock for the installation GraphQL client.
- See Also:
-
repository
- Parameters:
fullName- The full name of a GitHub repository, for instancequarkusio/quarkus.- Returns:
- The mock for that repository.
-
issue
org.kohsuke.github.GHIssue issue(long id) -
pullRequest
org.kohsuke.github.GHPullRequest pullRequest(long id) -
issueComment
org.kohsuke.github.GHIssueComment issueComment(long id) -
team
org.kohsuke.github.GHTeam team(long id) -
ghObject
-
ghObjects
Object[] ghObjects()
-
installationClient(long)instead.