Search in sources :

Example 1 with TestReportPlugin

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;
}
Also used : AnalyzerPluginRepository(com.buschmais.jqassistant.core.analysis.spi.AnalyzerPluginRepository) TestReportPlugin(com.buschmais.jqassistant.core.plugin.impl.plugin.TestReportPlugin) ReportPlugin(com.buschmais.jqassistant.core.report.api.ReportPlugin) TestReportPlugin(com.buschmais.jqassistant.core.plugin.impl.plugin.TestReportPlugin) ReportContext(com.buschmais.jqassistant.core.report.api.ReportContext)

Aggregations

AnalyzerPluginRepository (com.buschmais.jqassistant.core.analysis.spi.AnalyzerPluginRepository)1 TestReportPlugin (com.buschmais.jqassistant.core.plugin.impl.plugin.TestReportPlugin)1 ReportContext (com.buschmais.jqassistant.core.report.api.ReportContext)1 ReportPlugin (com.buschmais.jqassistant.core.report.api.ReportPlugin)1