use of com.thoughtworks.go.helper.TestStreamConsumer in project gocd by gocd.
the class UrlBasedArtifactsRepositoryTest method setUp.
@Before
public void setUp() throws Exception {
artifactFolder = TestFileUtil.createTempFolder("artifact_folder");
tempFile = TestFileUtil.createTestFile(artifactFolder, "file.txt");
console = new TestStreamConsumer();
artifactsRepository = new UrlBasedArtifactsRepository(httpService, "http://baseurl/artifacts/", "http://baseurl/properties/", new ZipUtil());
}
use of com.thoughtworks.go.helper.TestStreamConsumer in project gocd by gocd.
the class BuildSessionBasedTestCase method superSetup.
@Before
public void superSetup() {
statusReporter = new BuildStateReporterStub();
buildVariables = new HashMap<>();
artifactsRepository = new ArtifactsRepositoryStub();
sandbox = TestFileUtil.createTempFolder(UUID.randomUUID().toString());
console = new TestStreamConsumer();
httpService = new HttpServiceStub();
}
Aggregations