Search in sources :

Example 1 with JobAgentMetadataDao

use of com.thoughtworks.go.server.dao.JobAgentMetadataDao in project gocd by gocd.

the class JobControllerTest method setUp.

@BeforeEach
public void setUp() throws Exception {
    jobInstanceService = mock(JobInstanceService.class);
    jobInstanceDao = mock(JobInstanceDao.class);
    jobConfigService = mock(GoConfigService.class);
    agentService = mock(AgentService.class);
    stageService = mock(StageService.class);
    response = new MockHttpServletResponse();
    systemEnvironment = mock(SystemEnvironment.class);
    pipelineService = mock(PipelineService.class);
    restfulService = mock(RestfulService.class);
    jobAgentMetadataDao = mock(JobAgentMetadataDao.class);
    securityService = mock(SecurityService.class);
    jobController = new JobController(jobInstanceService, agentService, jobInstanceDao, jobConfigService, pipelineService, restfulService, null, stageService, jobAgentMetadataDao, systemEnvironment, securityService);
}
Also used : SystemEnvironment(com.thoughtworks.go.util.SystemEnvironment) JobAgentMetadataDao(com.thoughtworks.go.server.dao.JobAgentMetadataDao) JobInstanceDao(com.thoughtworks.go.server.dao.JobInstanceDao) MockHttpServletResponse(org.springframework.mock.web.MockHttpServletResponse) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

JobAgentMetadataDao (com.thoughtworks.go.server.dao.JobAgentMetadataDao)1 JobInstanceDao (com.thoughtworks.go.server.dao.JobInstanceDao)1 SystemEnvironment (com.thoughtworks.go.util.SystemEnvironment)1 BeforeEach (org.junit.jupiter.api.BeforeEach)1 MockHttpServletResponse (org.springframework.mock.web.MockHttpServletResponse)1