Search in sources :

Example 1 with SvnRepoFixture

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();
}
Also used : SvnCommand(com.thoughtworks.go.domain.materials.svn.SvnCommand) DependencyMaterial(com.thoughtworks.go.config.materials.dependency.DependencyMaterial) SvnRepoFixture(com.thoughtworks.go.utils.SvnRepoFixture) CaseInsensitiveString(com.thoughtworks.go.config.CaseInsensitiveString) Before(org.junit.Before)

Example 2 with SvnRepoFixture

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();
}
Also used : P4Fixture(com.thoughtworks.go.domain.materials.perforce.P4Fixture) SvnCommand(com.thoughtworks.go.domain.materials.svn.SvnCommand) DependencyMaterial(com.thoughtworks.go.config.materials.dependency.DependencyMaterial) EnvironmentVariableContext(com.thoughtworks.go.util.command.EnvironmentVariableContext) SvnRepoFixture(com.thoughtworks.go.utils.SvnRepoFixture) CaseInsensitiveString(com.thoughtworks.go.config.CaseInsensitiveString) Before(org.junit.Before)

Example 3 with SvnRepoFixture

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");
}
Also used : SystemEnvironment(com.thoughtworks.go.util.SystemEnvironment) SvnCommand(com.thoughtworks.go.domain.materials.svn.SvnCommand) EnvironmentVariableContext(com.thoughtworks.go.util.command.EnvironmentVariableContext) File(java.io.File) SvnRepoFixture(com.thoughtworks.go.utils.SvnRepoFixture) Before(org.junit.Before)

Aggregations

SvnCommand (com.thoughtworks.go.domain.materials.svn.SvnCommand)3 SvnRepoFixture (com.thoughtworks.go.utils.SvnRepoFixture)3 Before (org.junit.Before)3 CaseInsensitiveString (com.thoughtworks.go.config.CaseInsensitiveString)2 DependencyMaterial (com.thoughtworks.go.config.materials.dependency.DependencyMaterial)2 EnvironmentVariableContext (com.thoughtworks.go.util.command.EnvironmentVariableContext)2 P4Fixture (com.thoughtworks.go.domain.materials.perforce.P4Fixture)1 SystemEnvironment (com.thoughtworks.go.util.SystemEnvironment)1 File (java.io.File)1