use of com.thoughtworks.go.helper.HgTestRepo in project gocd by gocd.
the class BuildAssignmentTest method setupHgRepo.
private void setupHgRepo() throws IOException {
hgTestRepo = new HgTestRepo("hgTestRepo1", temporaryFolder);
hgMaterial = MaterialsMother.hgMaterial(hgTestRepo.projectRepositoryUrl(), "hg_Dir");
}
use of com.thoughtworks.go.helper.HgTestRepo in project gocd by gocd.
the class BuildCauseProducerServiceIntegrationHgTest method setup.
@Before
public void setup() throws Exception {
dbHelper.onSetUp();
configHelper.onSetUp();
configHelper.usingCruiseConfigDao(goConfigDao).initializeConfigFile();
hgTestRepo = new HgTestRepo("hgTestRepo1", temporaryFolder);
hgMaterial = MaterialsMother.hgMaterial(hgTestRepo.projectRepositoryUrl());
hgMaterial.setFilter(new Filter(new IgnoredFiles("helper/**/*.*")));
workingFolder = temporaryFolder.newFolder("workingFolder");
outputStreamConsumer = inMemoryConsumer();
mingleConfig = configHelper.addPipeline("cruise", STAGE_NAME, this.hgMaterial.config(), "unit", "functional");
}
use of com.thoughtworks.go.helper.HgTestRepo in project gocd by gocd.
the class BuildCauseProducerServiceWithFlipModificationTest method setup.
@Before
public void setup() throws Exception {
configHelper = new GoConfigFileHelper();
dbHelper.onSetUp();
configHelper.onSetUp();
configHelper.usingCruiseConfigDao(goConfigDao).initializeConfigFile();
svnRepository = new SvnTestRepo(temporaryFolder);
hgTestRepo = new HgTestRepo("testHgRepo", temporaryFolder);
repository = new SvnCommand(null, svnRepository.projectRepositoryUrl());
svnMaterialConfig = new SvnMaterialConfig(repository.getUrl().forCommandline(), repository.getUserName(), repository.getPassword(), repository.isCheckExternals());
}
use of com.thoughtworks.go.helper.HgTestRepo in project gocd by gocd.
the class ChangeMaterialsTest method setUp.
@Before
public void setUp() throws Exception {
username = new Username(new CaseInsensitiveString("gli"));
dbHelper.onSetUp();
cruiseConfig = new GoConfigFileHelper().usingCruiseConfigDao(goConfigDao);
cruiseConfig.onSetUp();
cruiseConfig.initializeConfigFile();
hgTestRepo = new HgTestRepo(temporaryFolder);
SvnTestRepo svnRepo = new SvnTestRepo(temporaryFolder);
cruiseConfig.addPipeline(PIPELINE_NAME, DEV_STAGE, svnRepo.materialConfig(), "foo");
mingle = cruiseConfig.addStageToPipeline(PIPELINE_NAME, FT_STAGE, "bar");
pipeline = dbHelper.newPipelineWithAllStagesPassed(mingle);
listener = new StubScheduleCheckCompletedListener();
topic.addListener(listener);
}
use of com.thoughtworks.go.helper.HgTestRepo in project gocd by gocd.
the class MixedMultipleMaterialsTest method createRepo.
@Before
public void createRepo() throws IOException {
svnRepo = new SvnTestRepo(temporaryFolder);
hgRepo = new HgTestRepo(temporaryFolder);
gitRepo = new GitTestRepo(temporaryFolder);
pipelineDir = temporaryFolder.newFolder();
}
Aggregations