Search in sources :

Example 1 with Plugin

use of com.buschmais.jqassistant.core.plugin.api.configuration.Plugin in project jqa-core-framework by jQAssistant.

the class ConfigurationLoaderImplTest method loadFromFiles.

@Test
void loadFromFiles() {
    Configuration configuration = configurationLoader.load(Configuration.class);
    assertThat(configuration).isNotNull();
    List<Plugin> plugins = configuration.plugins();
    assertThat(plugins).isNotNull().hasSize(2);
    Scan scan = configuration.scan();
    assertThat(scan).isNotNull();
    assertThat(scan.continueOnError()).isEqualTo(true);
}
Also used : Configuration(com.buschmais.jqassistant.core.configuration.api.Configuration) Scan(com.buschmais.jqassistant.core.scanner.api.configuration.Scan) Plugin(com.buschmais.jqassistant.core.plugin.api.configuration.Plugin) Test(org.junit.jupiter.api.Test)

Example 2 with Plugin

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

the class ConfigurationLoaderImplTest method load.

@Test
void load() {
    File workingDirectory = new File("src/test/resources/working directory");
    File configurationDirectory = configurationLoader.getDefaultConfigurationDirectory(workingDirectory);
    assertThat(configurationDirectory).isEqualTo(new File(workingDirectory, ".jqassistant"));
    Configuration configuration = configurationLoader.load(configurationDirectory);
    assertThat(configuration).isNotNull();
    List<Plugin> plugins = configuration.plugins();
    assertThat(plugins).isNotNull().hasSize(2);
}
Also used : Configuration(com.buschmais.jqassistant.core.configuration.api.Configuration) File(java.io.File) Plugin(com.buschmais.jqassistant.core.plugin.api.configuration.Plugin) Test(org.junit.jupiter.api.Test)

Aggregations

Configuration (com.buschmais.jqassistant.core.configuration.api.Configuration)2 Plugin (com.buschmais.jqassistant.core.plugin.api.configuration.Plugin)2 Test (org.junit.jupiter.api.Test)2 Scan (com.buschmais.jqassistant.core.scanner.api.configuration.Scan)1 File (java.io.File)1