Search in sources :

Example 1 with GitProgressLogger

use of jetbrains.buildServer.buildTriggers.vcs.git.GitProgressLogger in project teamcity-git by JetBrains.

the class SSLInvestigatorTest method createFactory.

private GitFactory createFactory() {
    final GitAgentSSHService ssh = myMockery.mock(GitAgentSSHService.class);
    final GitProgressLogger logger = myMockery.mock(GitProgressLogger.class);
    final Context context = myMockery.mock(Context.class);
    myMockery.checking(new Expectations() {

        {
            atLeast(1).of(context).getGitVersion();
            will(returnValue(GitVersion.MIN));
            atLeast(1).of(context).isDeleteTempFiles();
            will(returnValue(false));
            atLeast(1).of(context).getGitExec();
            will(returnValue(new GitExec("git", GitVersion.MIN)));
            atLeast(1).of(context).getCustomConfig();
            will(returnValue(Collections.emptyList()));
            atLeast(1).of(context).getLogger();
            will(returnValue(logger));
            atLeast(1).of(context).getTempDir();
            will(returnValue(myTempDirectory));
            atLeast(1).of(context).getEnv();
            will(returnValue(Collections.emptyMap()));
        }
    });
    return myLoggingFactory.createFactory(ssh, context);
}
Also used : Context(jetbrains.buildServer.buildTriggers.vcs.git.command.Context) Expectations(org.jmock.Expectations) GitAgentSSHService(jetbrains.buildServer.buildTriggers.vcs.git.agent.GitAgentSSHService) GitExec(jetbrains.buildServer.buildTriggers.vcs.git.command.GitExec) GitProgressLogger(jetbrains.buildServer.buildTriggers.vcs.git.GitProgressLogger)

Aggregations

GitProgressLogger (jetbrains.buildServer.buildTriggers.vcs.git.GitProgressLogger)1 GitAgentSSHService (jetbrains.buildServer.buildTriggers.vcs.git.agent.GitAgentSSHService)1 Context (jetbrains.buildServer.buildTriggers.vcs.git.command.Context)1 GitExec (jetbrains.buildServer.buildTriggers.vcs.git.command.GitExec)1 Expectations (org.jmock.Expectations)1