Search in sources :

Example 1 with GcErrors

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

the class GitResetCacheHandlerTest method setUp.

@BeforeMethod
public void setUp() throws IOException {
    new TeamCityProperties() {

        {
            setModel(new BasePropertiesModel() {
            });
        }
    };
    myContext = new Mockery() {

        {
            setImposteriser(ClassImposteriser.INSTANCE);
        }
    };
    myTempFiles = new TempFiles();
    myCachesDir = myTempFiles.createTempDir();
    myRepositoryManager = myContext.mock(RepositoryManager.class);
    myCacheHandler = new GitResetCacheHandler(myRepositoryManager, new GcErrors());
}
Also used : GcErrors(jetbrains.buildServer.buildTriggers.vcs.git.GcErrors) BasePropertiesModel(jetbrains.buildServer.serverSide.BasePropertiesModel) RepositoryManager(jetbrains.buildServer.buildTriggers.vcs.git.RepositoryManager) GitResetCacheHandler(jetbrains.buildServer.buildTriggers.vcs.git.GitResetCacheHandler) Mockery(org.jmock.Mockery) TeamCityProperties(jetbrains.buildServer.serverSide.TeamCityProperties) TempFiles(jetbrains.buildServer.TempFiles) BeforeMethod(org.testng.annotations.BeforeMethod)

Aggregations

TempFiles (jetbrains.buildServer.TempFiles)1 GcErrors (jetbrains.buildServer.buildTriggers.vcs.git.GcErrors)1 GitResetCacheHandler (jetbrains.buildServer.buildTriggers.vcs.git.GitResetCacheHandler)1 RepositoryManager (jetbrains.buildServer.buildTriggers.vcs.git.RepositoryManager)1 BasePropertiesModel (jetbrains.buildServer.serverSide.BasePropertiesModel)1 TeamCityProperties (jetbrains.buildServer.serverSide.TeamCityProperties)1 Mockery (org.jmock.Mockery)1 BeforeMethod (org.testng.annotations.BeforeMethod)1