use of com.thoughtworks.go.listener.AgentStatusChangeListener in project gocd by gocd.
the class ScheduleServiceRescheduleHungJobsTest method activities.
private AgentInstances activities() {
AgentStatusChangeListener agentStatusChangeListener = mock(AgentStatusChangeListener.class);
final AgentInstances activities = new AgentInstances(agentStatusChangeListener);
SystemEnvironment systemEnvironment = new SystemEnvironment();
activities.add(AgentInstance.createFromConfig(new AgentConfig("uuid1"), systemEnvironment, agentStatusChangeListener));
activities.add(AgentInstance.createFromConfig(new AgentConfig("uuid2"), systemEnvironment, agentStatusChangeListener));
return activities;
}
use of com.thoughtworks.go.listener.AgentStatusChangeListener in project gocd by gocd.
the class AgentInstanceTest method setUp.
@Before
public void setUp() {
systemEnvironment = new SystemEnvironment();
agentConfig = new AgentConfig("uuid2", "CCeDev01", DEFAULT_IP_ADDRESS);
defaultBuildingInfo = new AgentBuildingInfo("pipeline", "buildLocator");
agentStatusChangeListener = mock(AgentStatusChangeListener.class);
}
Aggregations