use of com.thoughtworks.go.server.perf.WorkAssignmentPerformanceLogger in project gocd by gocd.
the class WorkFinderTest method before.
@Before
public void before() {
context = new ClassMockery();
workAssigner = context.mock(BuildAssignmentService.class);
assignedWorkTopic = context.mock(WorkAssignedTopic.class, "assignedWork");
idleAgentTopic = context.mock(IdleAgentTopic.class, "idleAgent");
workAssignmentPerformanceLogger = mock(WorkAssignmentPerformanceLogger.class);
context.checking(new Expectations() {
{
one(idleAgentTopic).addListener(with(any(WorkFinder.class)));
}
});
finder = new WorkFinder(workAssigner, idleAgentTopic, assignedWorkTopic, workAssignmentPerformanceLogger);
}
use of com.thoughtworks.go.server.perf.WorkAssignmentPerformanceLogger in project gocd by gocd.
the class BuildRepositoryMessageProducerTest method setUp.
@Before
public void setUp() {
oldImplementation = mock(BuildRepositoryRemoteImpl.class);
newImplementation = mock(WorkAssignments.class);
WorkAssignmentPerformanceLogger workAssignmentPerformanceLogger = mock(WorkAssignmentPerformanceLogger.class);
producer = new BuildRepositoryMessageProducer(oldImplementation, newImplementation, workAssignmentPerformanceLogger);
}
Aggregations