Search in sources :

Example 1 with PluginConfigurationReader

use of com.buschmais.jqassistant.core.plugin.api.PluginConfigurationReader in project jqa-core-framework by buschmais.

the class ScopePluginRepositoryTest method scopes.

@Test
public void scopes() throws PluginRepositoryException {
    PluginConfigurationReader pluginConfigurationReader = new PluginConfigurationReaderImpl();
    ScopePluginRepository repository = new ScopePluginRepositoryImpl(pluginConfigurationReader);
    assertThat(repository.getScope("test:foo"), Matchers.<Scope>equalTo(TestScope.FOO));
    assertThat(repository.getScope("Test:foo"), Matchers.<Scope>equalTo(TestScope.FOO));
    assertThat(repository.getScope("test:Foo"), Matchers.<Scope>equalTo(TestScope.FOO));
}
Also used : ScopePluginRepositoryImpl(com.buschmais.jqassistant.core.plugin.impl.ScopePluginRepositoryImpl) PluginConfigurationReader(com.buschmais.jqassistant.core.plugin.api.PluginConfigurationReader) ScopePluginRepository(com.buschmais.jqassistant.core.plugin.api.ScopePluginRepository) PluginConfigurationReaderImpl(com.buschmais.jqassistant.core.plugin.impl.PluginConfigurationReaderImpl) Test(org.junit.Test)

Aggregations

PluginConfigurationReader (com.buschmais.jqassistant.core.plugin.api.PluginConfigurationReader)1 ScopePluginRepository (com.buschmais.jqassistant.core.plugin.api.ScopePluginRepository)1 PluginConfigurationReaderImpl (com.buschmais.jqassistant.core.plugin.impl.PluginConfigurationReaderImpl)1 ScopePluginRepositoryImpl (com.buschmais.jqassistant.core.plugin.impl.ScopePluginRepositoryImpl)1 Test (org.junit.Test)1