use of com.buschmais.jqassistant.core.plugin.impl.plugin.TestReportPlugin in project jqa-core-framework by buschmais.
the class PluginRepositoryImplTest method getReportPluginProperties.
private Map<String, Object> getReportPluginProperties(PluginRepository pluginRepository, Map<String, Object> properties) {
AnalyzerPluginRepository analyzerPluginRepository = pluginRepository.getAnalyzerPluginRepository();
Map<String, ReportPlugin> reportPlugins = analyzerPluginRepository.getReportPlugins(mock(ReportContext.class), properties);
assertThat(reportPlugins).isNotEmpty();
for (ReportPlugin reportPlugin : reportPlugins.values()) {
if (reportPlugin instanceof TestReportPlugin) {
return ((TestReportPlugin) reportPlugin).getProperties();
}
}
return null;
}
Aggregations