Search in sources :

Example 1 with PluginRequestProcessorRegistry

use of com.thoughtworks.go.plugin.infra.PluginRequestProcessorRegistry in project gocd by gocd.

the class ServerInfoRequestProcessorTest method setUp.

@Before
public void setUp() throws Exception {
    initMocks(this);
    serverConfig = new ServerConfig();
    serverConfig.ensureServerIdExists();
    serverConfig.setSecureSiteUrl("https://example.com:8154/go");
    serverConfig.setSiteUrl("http://example.com:8153/go");
    processorRegistry = new PluginRequestProcessorRegistry();
    processor = new ServerInfoRequestProcessor(processorRegistry, goConfigService, Collections.singletonList(pluginExtension));
    when(goConfigService.serverConfig()).thenReturn(serverConfig);
    when(pluginExtension.extensionName()).thenReturn("extension1");
    when(pluginDescriptor.id()).thenReturn(pluginId);
}
Also used : ServerConfig(com.thoughtworks.go.config.ServerConfig) PluginRequestProcessorRegistry(com.thoughtworks.go.plugin.infra.PluginRequestProcessorRegistry) Before(org.junit.Before)

Aggregations

ServerConfig (com.thoughtworks.go.config.ServerConfig)1 PluginRequestProcessorRegistry (com.thoughtworks.go.plugin.infra.PluginRequestProcessorRegistry)1 Before (org.junit.Before)1