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);
}
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);
}
Aggregations