Search in sources :

Example 1 with OntrackGitHubClientFactory

use of net.nemerosa.ontrack.extension.github.client.OntrackGitHubClientFactory in project ontrack by nemerosa.

the class GitHubIssueServiceExtensionTest method init.

@Before
public void init() {
    configurationService = mock(GitHubConfigurationService.class);
    OntrackGitHubClientFactory gitHubClientFactory = mock(OntrackGitHubClientFactory.class);
    IssueExportServiceFactory issueExportServiceFactory = mock(IssueExportServiceFactory.class);
    extension = new GitHubIssueServiceExtension(new GitHubExtensionFeature(new GitExtensionFeature(new SCMExtensionFeature())), configurationService, gitHubClientFactory, issueExportServiceFactory);
    GitHubEngineConfiguration engineConfiguration = new GitHubEngineConfiguration("test", "url", "", "", "");
    configuration = new GitHubIssueServiceConfiguration(engineConfiguration, "nemerosa/ontrack");
}
Also used : IssueExportServiceFactory(net.nemerosa.ontrack.extension.issues.export.IssueExportServiceFactory) GitHubConfigurationService(net.nemerosa.ontrack.extension.github.service.GitHubConfigurationService) SCMExtensionFeature(net.nemerosa.ontrack.extension.scm.SCMExtensionFeature) GitHubEngineConfiguration(net.nemerosa.ontrack.extension.github.model.GitHubEngineConfiguration) GitHubIssueServiceConfiguration(net.nemerosa.ontrack.extension.github.service.GitHubIssueServiceConfiguration) GitExtensionFeature(net.nemerosa.ontrack.extension.git.GitExtensionFeature) OntrackGitHubClientFactory(net.nemerosa.ontrack.extension.github.client.OntrackGitHubClientFactory) Before(org.junit.Before)

Aggregations

GitExtensionFeature (net.nemerosa.ontrack.extension.git.GitExtensionFeature)1 OntrackGitHubClientFactory (net.nemerosa.ontrack.extension.github.client.OntrackGitHubClientFactory)1 GitHubEngineConfiguration (net.nemerosa.ontrack.extension.github.model.GitHubEngineConfiguration)1 GitHubConfigurationService (net.nemerosa.ontrack.extension.github.service.GitHubConfigurationService)1 GitHubIssueServiceConfiguration (net.nemerosa.ontrack.extension.github.service.GitHubIssueServiceConfiguration)1 IssueExportServiceFactory (net.nemerosa.ontrack.extension.issues.export.IssueExportServiceFactory)1 SCMExtensionFeature (net.nemerosa.ontrack.extension.scm.SCMExtensionFeature)1 Before (org.junit.Before)1