Class GitHubMockContextImpl
- java.lang.Object
-
- io.quarkiverse.githubapp.testing.internal.GitHubMockContextImpl
-
- All Implemented Interfaces:
GitHubMockContext,GitHubMockSetupContext,GitHubMockVerificationContext
public final class GitHubMockContextImpl extends Object implements GitHubMockContext, GitHubMockSetupContext, GitHubMockVerificationContext
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.kohsuke.github.GitHubclient(long id)voidconfigFileFromClasspath(String pathInRepository, String pathInClassPath)voidconfigFileFromString(String pathInRepository, String configFile)<T extends org.kohsuke.github.GHObject>
TghObject(Class<T> type, long id)Object[]ghObjects()org.kohsuke.github.GHIssueissue(long id)org.kohsuke.github.GHPullRequestpullRequest(long id)org.kohsuke.github.GHRepositoryrepository(String id)
-
-
-
Method Detail
-
client
public org.kohsuke.github.GitHub client(long id)
- Specified by:
clientin interfaceGitHubMockContext
-
configFileFromClasspath
public void configFileFromClasspath(String pathInRepository, String pathInClassPath) throws IOException
- Specified by:
configFileFromClasspathin interfaceGitHubMockSetupContext- Throws:
IOException
-
configFileFromString
public void configFileFromString(String pathInRepository, String configFile)
- Specified by:
configFileFromStringin interfaceGitHubMockSetupContext
-
repository
public org.kohsuke.github.GHRepository repository(String id)
- Specified by:
repositoryin interfaceGitHubMockContext
-
issue
public org.kohsuke.github.GHIssue issue(long id)
- Specified by:
issuein interfaceGitHubMockContext
-
pullRequest
public org.kohsuke.github.GHPullRequest pullRequest(long id)
- Specified by:
pullRequestin interfaceGitHubMockContext
-
ghObject
public <T extends org.kohsuke.github.GHObject> T ghObject(Class<T> type, long id)
- Specified by:
ghObjectin interfaceGitHubMockContext
-
ghObjects
public Object[] ghObjects()
- Specified by:
ghObjectsin interfaceGitHubMockContext
-
-