use of com.buschmais.jqassistant.plugin.impl.plugin.TestScannerPlugin in project jqa-core-framework by buschmais.
the class PluginRepositoryTest method getScannerPluginProperties.
private Map<String, Object> getScannerPluginProperties(PluginRepository pluginRepository, Map<String, Object> properties) throws PluginRepositoryException {
ScannerPluginRepository scannerPluginRepository = pluginRepository.getScannerPluginRepository();
ScannerContext scannerContext = mock(ScannerContext.class);
Map<String, ScannerPlugin<?, ?>> scannerPlugins = scannerPluginRepository.getScannerPlugins(scannerContext, properties);
assertThat(scannerPlugins.size(), greaterThan(0));
for (ScannerPlugin<?, ?> scannerPlugin : scannerPlugins.values()) {
if (scannerPlugin instanceof TestScannerPlugin) {
return ((TestScannerPlugin) scannerPlugin).getProperties();
}
}
return null;
}
Aggregations