@Test @DisplayName("Provides configuration from properties file in config folder") void testFileInConfigConfig() throws Exception { Path configFolder = Paths.get("config"); Path file = configFolder.resolve("business-parameters.properties"); try { Files.createDirectories(configFolder); Files.write(file, Collections.singleton("property=testFileInConfigConfig")); Configuration config = new ServerConfigurationProvider().getConfiguration(); assertThat(config.getStringParameter("property")).hasValue("testFileInConfigConfig"); } finally { Files.deleteIfExists(file); Files.deleteIfExists(configFolder); } }
@Override public Configuration getConfiguration() { return ensureLoadedConfiguration(); }
ServerConfigurationProvider implements ConfigurationProvider { @Override public Configuration getConfiguration() { return ensureLoadedConfiguration(); } }
ServerConfigurationProvider implements ConfigurationProvider { @Override public Configuration getConfiguration() { return ensureLoadedConfiguration(); }  }
ServerConfigurationProvider implements ConfigurationProvider { @Override public Configuration getConfiguration() { return ensureLoadedConfiguration(); }  @Override Configuration getConfiguration(); }
ServerConfigurationProvider implements ConfigurationProvider { @Override public Configuration getConfiguration() { return ensureLoadedConfiguration(); }  @Override Configuration getConfiguration();  }