use of com.thoughtworks.go.server.transaction.TestTransactionSynchronizationManager in project gocd by gocd.
the class StageServiceTest method setUp.
@Before
public void setUp() throws Exception {
stageDao = mock(StageDao.class);
pipelineDao = mock(PipelineDao.class);
jobInstanceService = mock(JobInstanceService.class);
securityService = mock(SecurityService.class);
pipelineNames = asList(new CaseInsensitiveString("blah-pipeline"));
user = new Username(new CaseInsensitiveString("poovan"));
operationResult = new HttpLocalizedOperationResult();
cruiseConfig = mock(BasicCruiseConfig.class);
goConfigService = mock(GoConfigService.class);
changesetService = mock(ChangesetService.class);
goCache = mock(GoCache.class);
transactionSynchronizationManager = new TestTransactionSynchronizationManager();
transactionTemplate = new TestTransactionTemplate(transactionSynchronizationManager);
}
Aggregations