Search in sources :

Example 1 with EnvironmentConfigService

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

the class MyGoInterceptorTest method setUp.

@Before
public void setUp() throws Exception {
    goConfigService = mock(GoConfigService.class);
    environmentConfigService = mock(EnvironmentConfigService.class);
    myGoInterceptor = new MyGoInterceptor(goConfigService);
    request = new MockHttpServletRequest();
    response = new MockHttpServletResponse();
    modelAndView = new ModelAndView();
}
Also used : EnvironmentConfigService(com.thoughtworks.go.server.service.EnvironmentConfigService) MockHttpServletRequest(org.springframework.mock.web.MockHttpServletRequest) ModelAndView(org.springframework.web.servlet.ModelAndView) GoConfigService(com.thoughtworks.go.server.service.GoConfigService) MockHttpServletResponse(org.springframework.mock.web.MockHttpServletResponse) Before(org.junit.Before)

Aggregations

EnvironmentConfigService (com.thoughtworks.go.server.service.EnvironmentConfigService)1 GoConfigService (com.thoughtworks.go.server.service.GoConfigService)1 Before (org.junit.Before)1 MockHttpServletRequest (org.springframework.mock.web.MockHttpServletRequest)1 MockHttpServletResponse (org.springframework.mock.web.MockHttpServletResponse)1 ModelAndView (org.springframework.web.servlet.ModelAndView)1