Search in sources :

Example 1 with RestfulService

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

the class ArtifactsControllerTest method setUp.

@BeforeEach
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) BeforeEach(org.junit.jupiter.api.BeforeEach)

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 BeforeEach (org.junit.jupiter.api.BeforeEach)1 MockHttpServletRequest (org.springframework.mock.web.MockHttpServletRequest)1