Search in sources :

Example 1 with TestReportPlugin

use of com.buschmais.jqassistant.plugin.impl.plugin.TestReportPlugin in project jqa-core-framework by buschmais.

the class PluginRepositoryTest method getReportPluginProperties.

private Map<String, Object> getReportPluginProperties(PluginRepository pluginRepository, Map<String, Object> properties) throws PluginRepositoryException {
    ReportPluginRepository reportPluginRepository = pluginRepository.getReportPluginRepository();
    Map<String, ReportPlugin> reportPlugins = reportPluginRepository.getReportPlugins(properties);
    assertThat(reportPlugins.size(), greaterThan(0));
    for (ReportPlugin reportPlugin : reportPlugins.values()) {
        if (reportPlugin instanceof TestReportPlugin) {
            return ((TestReportPlugin) reportPlugin).getProperties();
        }
    }
    return null;
}
Also used : ReportPlugin(com.buschmais.jqassistant.core.report.api.ReportPlugin) TestReportPlugin(com.buschmais.jqassistant.plugin.impl.plugin.TestReportPlugin) TestReportPlugin(com.buschmais.jqassistant.plugin.impl.plugin.TestReportPlugin)

Aggregations

ReportPlugin (com.buschmais.jqassistant.core.report.api.ReportPlugin)1 TestReportPlugin (com.buschmais.jqassistant.plugin.impl.plugin.TestReportPlugin)1