当前位置: 首页>>代码示例>>Java>>正文


Java PluginRepositoryImpl类代码示例

本文整理汇总了Java中com.buschmais.jqassistant.core.plugin.impl.PluginRepositoryImpl的典型用法代码示例。如果您正苦于以下问题:Java PluginRepositoryImpl类的具体用法?Java PluginRepositoryImpl怎么用?Java PluginRepositoryImpl使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


PluginRepositoryImpl类属于com.buschmais.jqassistant.core.plugin.impl包,在下文中一共展示了PluginRepositoryImpl类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: repositories

import com.buschmais.jqassistant.core.plugin.impl.PluginRepositoryImpl; //导入依赖的package包/类
@Test
public void repositories() throws PluginRepositoryException {
    PluginConfigurationReader pluginConfigurationReader = new PluginConfigurationReaderImpl(PluginRepositoryTest.class.getClassLoader());
    PluginRepository pluginRepository = new PluginRepositoryImpl(pluginConfigurationReader);
    // Scanner plugins
    ScannerContext scannerContext = mock(ScannerContext.class);
    Map<String, ScannerPlugin<?, ?>> scannerPlugins = pluginRepository.getScannerPluginRepository().getScannerPlugins(scannerContext, Collections.<String, Object>emptyMap());
    assertThat(scannerPlugins.size(), equalTo(2));
    assertThat(scannerPlugins.get(TestScannerPlugin.class.getSimpleName()), notNullValue());
    assertThat(scannerPlugins.get("testScanner"), notNullValue());
    // Report plugins
    Map<String, ReportPlugin> reportPlugins = pluginRepository.getReportPluginRepository().getReportPlugins(Collections.<String, Object>emptyMap());
    assertThat(reportPlugins.size(), equalTo(2));
    assertThat(reportPlugins.get(TestReportPlugin.class.getSimpleName()), notNullValue());
    assertThat(reportPlugins.get("testReport"), notNullValue());
}
 
开发者ID:buschmais,项目名称:jqa-core-framework,代码行数:17,代码来源:PluginRepositoryTest.java

示例2: PluginRepositoryProvider

import com.buschmais.jqassistant.core.plugin.impl.PluginRepositoryImpl; //导入依赖的package包/类
PluginRepositoryProvider() throws MojoExecutionException {
    try {
        pluginRepository = new PluginRepositoryImpl(pluginConfigurationReader);
    } catch (PluginRepositoryException e) {
        throw new MojoExecutionException("Cannot create plugin repository.", e);
    }
}
 
开发者ID:buschmais,项目名称:jqa-maven-plugin,代码行数:8,代码来源:PluginRepositoryProvider.java

示例3: getPluginRepository

import com.buschmais.jqassistant.core.plugin.impl.PluginRepositoryImpl; //导入依赖的package包/类
/**
 * Initialize the plugin repository.
 * 
 * @return The repository.
 * @throws CliExecutionException
 *             If initialization fails.
 */
private PluginRepository getPluginRepository() throws CliExecutionException {
    PluginConfigurationReader pluginConfigurationReader = new PluginConfigurationReaderImpl(createPluginClassLoader());
    try {
        return new PluginRepositoryImpl(pluginConfigurationReader);
    } catch (PluginRepositoryException e) {
        throw new CliExecutionException("Cannot create plugin repository.", e);
    }
}
 
开发者ID:buschmais,项目名称:jqa-commandline-tool,代码行数:16,代码来源:Main.java

示例4: pluginProperties

import com.buschmais.jqassistant.core.plugin.impl.PluginRepositoryImpl; //导入依赖的package包/类
/**
 * Verifies that properties are loaded and passed to plugins.
 *
 * @throws PluginRepositoryException If the test fails.
 */
@Test
public void pluginProperties() throws PluginRepositoryException {
    PluginConfigurationReader pluginConfigurationReader = new PluginConfigurationReaderImpl(PluginRepositoryTest.class.getClassLoader());
    Map<String, Object> properties = new HashMap<>();
    properties.put("testKey", "testValue");
    PluginRepository pluginRepository = new PluginRepositoryImpl(pluginConfigurationReader);
    // scanner plugins
    verifyProperties(getScannerPluginProperties(pluginRepository, properties));
    // report plugins
    verifyProperties(getReportPluginProperties(pluginRepository, properties));
}
 
开发者ID:buschmais,项目名称:jqa-core-framework,代码行数:17,代码来源:PluginRepositoryTest.java


注:本文中的com.buschmais.jqassistant.core.plugin.impl.PluginRepositoryImpl类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。