Search in sources :

Example 1 with BulkPatchBuilderImpl

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

the class BulkPatchBuilderTest method setUp.

@BeforeMethod
@Override
public void setUp() throws Exception {
    super.setUp();
    ServerPaths myPaths = new ServerPaths(myTempFiles.createTempDir().getAbsolutePath());
    GitSupportBuilder builder = gitSupport().withServerPaths(myPaths);
    myGit = builder.build();
    myCommitSupport = new GitCommitsInfoBuilder(myGit, new GitFetchService(myGit));
    myBulkBuilder = new BulkPatchBuilderImpl(builder.getPluginConfig(), myGit, builder.getTransportFactory());
    myRepositoryDir = myTempFiles.createTempDir();
    File masterRep = dataFile("repo.git");
    FileUtil.copyDir(masterRep, myRepositoryDir);
}
Also used : GitCommitsInfoBuilder(jetbrains.buildServer.buildTriggers.vcs.git.commitInfo.GitCommitsInfoBuilder) ServerPaths(jetbrains.buildServer.serverSide.ServerPaths) GitTestUtil.dataFile(jetbrains.buildServer.buildTriggers.vcs.git.tests.GitTestUtil.dataFile) File(java.io.File) GitFetchService(jetbrains.buildServer.buildTriggers.vcs.git.GitFetchService) BulkPatchBuilderImpl(jetbrains.buildServer.buildTriggers.vcs.git.patch.BulkPatchBuilderImpl) BeforeMethod(org.testng.annotations.BeforeMethod)

Aggregations

File (java.io.File)1 GitFetchService (jetbrains.buildServer.buildTriggers.vcs.git.GitFetchService)1 GitCommitsInfoBuilder (jetbrains.buildServer.buildTriggers.vcs.git.commitInfo.GitCommitsInfoBuilder)1 BulkPatchBuilderImpl (jetbrains.buildServer.buildTriggers.vcs.git.patch.BulkPatchBuilderImpl)1 GitTestUtil.dataFile (jetbrains.buildServer.buildTriggers.vcs.git.tests.GitTestUtil.dataFile)1 ServerPaths (jetbrains.buildServer.serverSide.ServerPaths)1 BeforeMethod (org.testng.annotations.BeforeMethod)1