use of com.thoughtworks.go.utils.SvnRepoFixture in project gocd by gocd.
the class BuildAssignmentTest method setUp.
@Before
public void setUp() throws IOException {
initMocks(this);
dir = temporaryFolder.newFolder("someFolder");
svnRepoFixture = new SvnRepoFixture("../common/src/test/resources/data/svnrepo", temporaryFolder);
svnRepoFixture.createRepository();
command = new SvnCommand(null, svnRepoFixture.getEnd2EndRepoUrl());
svnMaterial = createSvnMaterialWithMock(command);
dependencyMaterial = new DependencyMaterial(new CaseInsensitiveString("upstream1"), new CaseInsensitiveString(STAGE_NAME));
dependencyMaterialWithName = new DependencyMaterial(new CaseInsensitiveString("upstream2"), new CaseInsensitiveString(STAGE_NAME));
dependencyMaterialWithName.setName(new CaseInsensitiveString("dependency_material_name"));
setupHgRepo();
}
use of com.thoughtworks.go.utils.SvnRepoFixture in project gocd by gocd.
the class BuildWorkEnvironmentVariablesTest method setUp.
@Before
public void setUp() throws Exception {
initMocks(this);
dir = temporaryFolder.newFolder("someFolder");
environmentVariableContext = new EnvironmentVariableContext();
svnRepoFixture = new SvnRepoFixture("../common/src/test/resources/data/svnrepo", temporaryFolder);
svnRepoFixture.createRepository();
command = new SvnCommand(null, svnRepoFixture.getEnd2EndRepoUrl());
pipelineConfig = PipelineConfigMother.createPipelineConfig(PIPELINE_NAME, STAGE_NAME, JOB_NAME);
svnMaterial = SvnMaterial.createSvnMaterialWithMock(command);
dependencyMaterial = new DependencyMaterial(new CaseInsensitiveString("upstream1"), new CaseInsensitiveString(STAGE_NAME));
dependencyMaterialWithName = new DependencyMaterial(new CaseInsensitiveString("upstream2"), new CaseInsensitiveString(STAGE_NAME));
dependencyMaterialWithName.setName(new CaseInsensitiveString("dependency_material_name"));
setupHgRepo();
p4Fixture = new P4Fixture();
p4Material = getP4Material();
}
use of com.thoughtworks.go.utils.SvnRepoFixture in project gocd by gocd.
the class BuildWorkArtifactUploadingTest method setUp.
@Before
public void setUp() throws IOException {
initMocks(this);
buildWorkingDirectory = new File("tmp" + UUID.randomUUID());
environmentVariableContext = new EnvironmentVariableContext();
svnRepoFixture = new SvnRepoFixture("../common/src/test/resources/data/svnrepo", temporaryFolder);
svnRepoFixture.createRepository();
SvnCommand command = new SvnCommand(null, svnRepoFixture.getEnd2EndRepoUrl());
PipelineConfigMother.createPipelineConfig(PIPELINE_NAME, STAGE_NAME, JOB_NAME);
svnMaterial = SvnMaterial.createSvnMaterialWithMock(command);
new SystemEnvironment().setProperty("serviceUrl", "some_random_place");
}
Aggregations