Search in sources :

Example 1 with AgentService

use of com.thoughtworks.go.server.service.AgentService 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)

Example 2 with AgentService

use of com.thoughtworks.go.server.service.AgentService in project gocd by gocd.

the class JobResultListenerTest method setup.

@Before
public void setup() {
    agentService = mockery.mock(AgentService.class);
    listener = new JobResultListener(new JobResultTopic(null), agentService);
    jobIdentifier = new JobIdentifier("cruise", "1", "dev", "1", "linux-firefox");
}
Also used : AgentService(com.thoughtworks.go.server.service.AgentService) JobIdentifier(com.thoughtworks.go.domain.JobIdentifier) Before(org.junit.Before)

Aggregations

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