SystemPropertiesLoader implements Initializable { protected String getProperty(String key) { OLATProperty prop = mergedProps.get(key); if (prop == null) { return null; } return prop.getValue(); } protected  SystemPropertiesLoader(); protected  SystemPropertiesLoader(String olatdataPath); @PostConstruct @Override void init(); static final String USERDATA_DIR_DEFAULT; }
@Test public void testDefaultProperty() { assertNotNull(propertiesLoader.getProperty(ITCASE_DUMMY)); }
@Test public void testOverwritePropertyWithMavenBuildProps() { assertEquals("Testversion 42", propertiesLoader.getProperty(PropertyLocator.BUILD_VERSION.getPropertyName())); }