diff --git a/core/test/src/main/java/com/buschmais/jqassistant/core/test/plugin/AbstractPluginIT.java b/core/test/src/main/java/com/buschmais/jqassistant/core/test/plugin/AbstractPluginIT.java index 3cad0e708..e50b23d59 100644 --- a/core/test/src/main/java/com/buschmais/jqassistant/core/test/plugin/AbstractPluginIT.java +++ b/core/test/src/main/java/com/buschmais/jqassistant/core/test/plugin/AbstractPluginIT.java @@ -122,6 +122,10 @@ public void beforeEach(TestInfo testInfo) throws IOException, RuleException { protected void configure(ConfigurationBuilder configurationBuilder) { } + protected List getConfigurationProfiles() { + return emptyList(); + } + private ConfigurationBuilder createConfigurationBuilder() { ConfigurationBuilder configurationBuilder = new ConfigurationBuilder("ITConfigSource", 110); TestStore.Type type = testStore != null ? testStore.type() : TestStore.Type.MEMORY; @@ -174,6 +178,8 @@ public void stopStore() { */ private Configuration createConfiguration(ConfigurationBuilder configurationBuilder) { return ConfigurationMappingLoader.builder(Configuration.class) + .withClasspath() + .withProfiles(getConfigurationProfiles()) .load(configurationBuilder.build(), new EnvConfigSource() { }, new SysPropConfigSource()); }