Search in sources :

Example 16 with GoConfigService

use of com.thoughtworks.go.server.service.GoConfigService 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

GoConfigService (com.thoughtworks.go.server.service.GoConfigService)16 Before (org.junit.Before)13 Username (com.thoughtworks.go.server.domain.Username)8 ServerHealthService (com.thoughtworks.go.serverhealth.ServerHealthService)3 Test (org.junit.Test)3 CaseInsensitiveString (com.thoughtworks.go.config.CaseInsensitiveString)2 SvnMaterial (com.thoughtworks.go.config.materials.svn.SvnMaterial)2 SvnMaterialConfig (com.thoughtworks.go.config.materials.svn.SvnMaterialConfig)2 AuthorizationExtension (com.thoughtworks.go.plugin.access.authorization.AuthorizationExtension)2 MaterialConfigConverter (com.thoughtworks.go.server.service.MaterialConfigConverter)2 HttpLocalizedOperationResult (com.thoughtworks.go.server.service.result.HttpLocalizedOperationResult)2 SystemEnvironment (com.thoughtworks.go.util.SystemEnvironment)2 CachedGoPartials (com.thoughtworks.go.config.CachedGoPartials)1 GoConfigMigration (com.thoughtworks.go.config.GoConfigMigration)1 SecurityConfig (com.thoughtworks.go.config.SecurityConfig)1 ScmMaterial (com.thoughtworks.go.config.materials.ScmMaterial)1 DependencyMaterial (com.thoughtworks.go.config.materials.dependency.DependencyMaterial)1 GitMaterialConfig (com.thoughtworks.go.config.materials.git.GitMaterialConfig)1 HgMaterial (com.thoughtworks.go.config.materials.mercurial.HgMaterial)1 HgMaterialConfig (com.thoughtworks.go.config.materials.mercurial.HgMaterialConfig)1