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);
}
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");
}
Aggregations