Search in sources :

Example 1 with JobStatusTopic

use of com.thoughtworks.go.server.messaging.JobStatusTopic in project gocd by gocd.

the class BuildRepositoryRemoteImplTest method setUp.

@Before
public void setUp() {
    repositoryService = mock(BuildRepositoryService.class);
    agentService = mock(AgentService.class);
    jobStatusTopic = mock(JobStatusTopic.class);
    buildRepository = new BuildRepositoryRemoteImpl(repositoryService, agentService, jobStatusTopic);
    logFixture = logFixtureFor(BuildRepositoryRemoteImpl.class, Level.TRACE);
    info = new AgentRuntimeInfo(new AgentIdentifier("host", "192.168.1.1", "uuid"), AgentRuntimeStatus.Idle, currentWorkingDirectory(), "cookie", false);
}
Also used : AgentRuntimeInfo(com.thoughtworks.go.server.service.AgentRuntimeInfo) AgentService(com.thoughtworks.go.server.service.AgentService) BuildRepositoryService(com.thoughtworks.go.server.service.BuildRepositoryService) JobStatusTopic(com.thoughtworks.go.server.messaging.JobStatusTopic) Before(org.junit.Before)

Aggregations

JobStatusTopic (com.thoughtworks.go.server.messaging.JobStatusTopic)1 AgentRuntimeInfo (com.thoughtworks.go.server.service.AgentRuntimeInfo)1 AgentService (com.thoughtworks.go.server.service.AgentService)1 BuildRepositoryService (com.thoughtworks.go.server.service.BuildRepositoryService)1 Before (org.junit.Before)1