use of jetbrains.buildServer.buildTriggers.vcs.git.agent.RemoteRepositoryUrlInvestigatorImpl in project teamcity-git by JetBrains.
the class AgentConfigPluginTest method setUp.
@BeforeMethod
public void setUp() {
new TeamCityProperties() {
{
setModel(new BasePropertiesModel() {
});
}
};
myMockery = new Mockery();
myAgentConfig = myMockery.mock(BuildAgentConfiguration.class);
myBuild = myMockery.mock(AgentRunningBuild.class);
myBuildSharedConfigParameters = new HashMap<String, String>();
myMockery.checking(new Expectations() {
{
allowing(myBuild).getSharedConfigParameters();
will(returnValue(myBuildSharedConfigParameters));
allowing(myBuild).getBuildLogger();
allowing(myAgentConfig).getCacheDirectory("git");
will(returnValue(new File("")));
}
});
myMirrorManager = new MirrorManagerImpl(new AgentMirrorConfig(myAgentConfig), new HashCalculatorImpl(), new RemoteRepositoryUrlInvestigatorImpl());
}
Aggregations