use of com.thoughtworks.go.server.messaging.StubScheduleCheckCompletedListener 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.server.messaging.StubScheduleCheckCompletedListener in project gocd by gocd.
the class ChangeMaterialsTest method setUp.
@BeforeEach
public void setUp(@TempDir Path tempDir) throws Exception {
username = new Username(new CaseInsensitiveString("gli"));
dbHelper.onSetUp();
cruiseConfig = new GoConfigFileHelper().usingCruiseConfigDao(goConfigDao);
cruiseConfig.onSetUp();
hgTestRepo = new HgTestRepo(tempDir);
SvnTestRepo svnRepo = new SvnTestRepo(tempDir);
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);
}
Aggregations