use of org.eclipse.che.git.impl.jgit.JGitConnectionFactory in project che by eclipse.
the class GitConnectionFactoryProvider method createConnection.
@DataProvider(name = "GitConnectionFactory")
public static Object[][] createConnection() throws ServerException, NotFoundException {
GitUserResolver resolver = mock(GitUserResolver.class);
when(resolver.getUser()).thenReturn(GitTestUtil.getTestGitUser());
return new Object[][] { new Object[] { new JGitConnectionFactory(mock(CredentialsLoader.class), mock(SshKeyProvider.class), resolver) } };
}
Aggregations