use of net.nemerosa.ontrack.git.GitRepositoryClientFactory in project ontrack by nemerosa.
the class GitMockConfig method repositoryClientFactory.
@Bean
@Primary
public GitRepositoryClientFactory repositoryClientFactory() {
GitRepositoryClientFactory factory = mock(GitRepositoryClientFactory.class);
when(factory.getClient(any(GitRepository.class))).thenReturn(testGitRepositoryClient());
return factory;
}
Aggregations