use of net.nemerosa.ontrack.extension.git.GitExtensionFeature in project ontrack by nemerosa.
the class GitLabIssueServiceExtensionTest method init.
@Before
public void init() {
configurationService = mock(GitLabConfigurationService.class);
gitHubClientFactory = mock(OntrackGitLabClientFactory.class);
IssueExportServiceFactory issueExportServiceFactory = mock(IssueExportServiceFactory.class);
extension = new GitLabIssueServiceExtension(new GitLabExtensionFeature(new GitExtensionFeature(new SCMExtensionFeature())), issueExportServiceFactory, configurationService, gitHubClientFactory);
engineConfiguration = new GitLabConfiguration("test", "url", "", "", false);
configuration = new GitLabIssueServiceConfiguration(engineConfiguration, "nemerosa/ontrack");
issueWrapper = new GitLabIssueWrapper(new GitlabIssue(), "url/xxx", "url/xxx");
}
use of net.nemerosa.ontrack.extension.git.GitExtensionFeature 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");
}
Aggregations