Interface GitHubMockConfigFileSetupContext
public interface GitHubMockConfigFileSetupContext
-
Method Summary
Modifier and TypeMethodDescriptionvoidfromClasspath(String pathInClasspath) Finalizes mocking, using a file from the classpath as stubbed content.voidfromString(String configFile) Finalizes mocking, using a given string as stubbed content.Mocks the retrieval of particular ref.
-
Method Details
-
withRef
Mocks the retrieval of particular ref.- Parameters:
ref- The ref passed toGitHubConfigFileProvider.fetchConfigFile(GHRepository, String, String, ConfigFile.Source, Class)- Returns:
this, to continue mocking setup.- See Also:
-
fromClasspath
Finalizes mocking, using a file from the classpath as stubbed content.- Parameters:
pathInClasspath- The path of the content to use in the classpath.- Throws:
IOException- If reading the content from the classpath fails.
-
fromString
Finalizes mocking, using a given string as stubbed content.- Parameters:
configFile- The content of the configuration file as a string.
-