Search in sources :

Example 1 with ConsoleActivityMonitor

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

the class ArtifactsControllerTest method setUp.

@Before
public void setUp() {
    consoleActivityMonitor = mock(ConsoleActivityMonitor.class);
    restfulService = mock(RestfulService.class);
    artifactService = mock(ArtifactsService.class);
    consoleService = mock(ConsoleService.class);
    jobInstanceDao = mock(JobInstanceDao.class);
    systemEnvironment = mock(SystemEnvironment.class);
    artifactsController = new ArtifactsController(artifactService, restfulService, mock(ZipArtifactCache.class), jobInstanceDao, consoleActivityMonitor, consoleService, systemEnvironment);
    request = new MockHttpServletRequest();
}
Also used : SystemEnvironment(com.thoughtworks.go.util.SystemEnvironment) ConsoleActivityMonitor(com.thoughtworks.go.server.service.ConsoleActivityMonitor) RestfulService(com.thoughtworks.go.server.service.RestfulService) ArtifactsService(com.thoughtworks.go.server.service.ArtifactsService) MockHttpServletRequest(org.springframework.mock.web.MockHttpServletRequest) ConsoleService(com.thoughtworks.go.server.service.ConsoleService) JobInstanceDao(com.thoughtworks.go.server.dao.JobInstanceDao) Before(org.junit.Before)

Aggregations

JobInstanceDao (com.thoughtworks.go.server.dao.JobInstanceDao)1 ArtifactsService (com.thoughtworks.go.server.service.ArtifactsService)1 ConsoleActivityMonitor (com.thoughtworks.go.server.service.ConsoleActivityMonitor)1 ConsoleService (com.thoughtworks.go.server.service.ConsoleService)1 RestfulService (com.thoughtworks.go.server.service.RestfulService)1 SystemEnvironment (com.thoughtworks.go.util.SystemEnvironment)1 Before (org.junit.Before)1 MockHttpServletRequest (org.springframework.mock.web.MockHttpServletRequest)1