Search in sources :

Example 1 with JobStatusCache

use of com.thoughtworks.go.domain.activity.JobStatusCache in project gocd by gocd.

the class JobInstanceServiceTest method setUp.

@Before
public void setUp() throws Exception {
    initMocks(this);
    job = JobInstanceMother.building("dev");
    transactionSynchronizationManager = new TestTransactionSynchronizationManager();
    transactionTemplate = new TestTransactionTemplate(transactionSynchronizationManager);
    jobStatusCache = new JobStatusCache(stageDao);
}
Also used : TestTransactionTemplate(com.thoughtworks.go.server.transaction.TestTransactionTemplate) JobStatusCache(com.thoughtworks.go.domain.activity.JobStatusCache) TestTransactionSynchronizationManager(com.thoughtworks.go.server.transaction.TestTransactionSynchronizationManager) Before(org.junit.Before)

Aggregations

JobStatusCache (com.thoughtworks.go.domain.activity.JobStatusCache)1 TestTransactionSynchronizationManager (com.thoughtworks.go.server.transaction.TestTransactionSynchronizationManager)1 TestTransactionTemplate (com.thoughtworks.go.server.transaction.TestTransactionTemplate)1 Before (org.junit.Before)1