use of com.thoughtworks.go.plugin.infra.ElasticAgentInformationMigrator in project gocd by gocd.
the class PluginsInitializerTest method setUp.
@BeforeEach
public void setUp() throws Exception {
systemEnvironment = mock(SystemEnvironment.class);
when(systemEnvironment.get(SystemEnvironment.PLUGIN_GO_PROVIDED_PATH)).thenReturn(goPluginsDir.toFile().getAbsolutePath());
pluginManager = mock(PluginManager.class);
pluginExtensionsAndVersionValidator = mock(PluginExtensionsAndVersionValidator.class);
elasticAgentInformationMigrator = mock(ElasticAgentInformationMigrator.class);
pluginsInitializer = new PluginsInitializer(pluginManager, systemEnvironment, new ZipUtil(), pluginExtensionsAndVersionValidator, elasticAgentInformationMigrator) {
@Override
public void startDaemon() {
}
@Override
ZipInputStream getPluginsZipStream() {
return new ZipInputStream(getClass().getResourceAsStream("/dummy-plugins.zip"));
}
};
}
Aggregations