use of jetbrains.buildServer.TempFiles in project teamcity-torrent-plugin by JetBrains.
the class BuildAgentConfigurationFixture method setUp.
public BuildAgentConfiguration setUp() throws IOException {
myTmpFiles = new TempFiles();
final File systemDir = myTmpFiles.createTempDir();
final File torrentsDir = myTmpFiles.createTempDir();
Mockery m = new Mockery();
final BuildAgentConfiguration agentConfiguration = m.mock(BuildAgentConfiguration.class);
m.checking(new Expectations() {
{
allowing(agentConfiguration).getServerUrl();
will(returnValue("http://localhost:8111/bs"));
allowing(agentConfiguration).getSystemDirectory();
will(returnValue(systemDir));
allowing(agentConfiguration).getCacheDirectory(with(Constants.TORRENTS_DIRNAME));
will(returnValue(torrentsDir));
}
});
return agentConfiguration;
}
use of jetbrains.buildServer.TempFiles in project teamcity-torrent-plugin by JetBrains.
the class ServerTorrentsSeederTest method setUp.
@BeforeMethod
@Override
protected void setUp() throws Exception {
super.setUp();
myTempFiles = new TempFiles();
}
Aggregations