Interface GitHubMockContext

All Known Subinterfaces:
GitHubMockSetupContext, GitHubMockVerificationContext
All Known Implementing Classes:
GitHubMockContextImpl

public interface GitHubMockContext
  • Method Summary

    Modifier and Type
    Method
    Description
    org.kohsuke.github.GitHub
     
    default org.kohsuke.github.GitHub
    client(long installationId)
    Deprecated, for removal: This API element is subject to removal in a future version.
    <T extends org.kohsuke.github.GHObject>
    T
    ghObject(Class<T> type, long id)
     
     
    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.
    org.kohsuke.github.GitHub
    installationClient(long installationId)
     
    io.smallrye.graphql.client.dynamic.api.DynamicGraphQLClient
    installationGraphQLClient(long installationId)
     
    org.kohsuke.github.GHIssue
    issue(long id)
     
    org.kohsuke.github.GHIssueComment
    issueComment(long id)
     
    org.kohsuke.github.GHPullRequest
    pullRequest(long id)
     
    org.kohsuke.github.GHRepository
    repository(String fullName)
     
    org.kohsuke.github.GHTeam
    team(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(forRemoval=true) default org.kohsuke.github.GitHub client(long installationId)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use installationClient(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.
      Use installationGraphQLClient(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

      org.kohsuke.github.GHRepository repository(String fullName)
      Parameters:
      fullName - The full name of a GitHub repository, for instance quarkusio/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

      <T extends org.kohsuke.github.GHObject> T ghObject(Class<T> type, long id)
    • ghObjects

      Object[] ghObjects()