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);
}
Aggregations