@Test @DisplayName("Provides configuration from properties file") void testFileConfig() throws Exception { Path file = Paths.get("business-parameters.properties"); try { Files.write(file, Collections.singleton("property=testFileConfig")); Configuration config = new ServerConfigurationProvider().getConfiguration(); assertThat(config.getStringParameter("property")).hasValue("testFileConfig"); } finally { Files.deleteIfExists(file); } }
@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();  }