@Component
public class ApplicationConfiguration
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TEST_MODE
Annotate your integration test class with
@TestPropertySource(properties = {"testmode = true"}) to
load the configuration files from the test resources. |
Constructor and Description |
---|
ApplicationConfiguration() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getProperty(ApplicationConfigurationFile configFile,
java.lang.String key) |
protected java.util.Properties |
loadPropertiesFile(ApplicationConfigurationFile configFile) |
public static final java.lang.String TEST_MODE
@TestPropertySource(properties = {"testmode = true"})
to
load the configuration files from the test resources.
NOTE: This will not work with current implementation of the
CdmIntegrationTests
.
For these tests please use the unitils.AlternativeUnitilsJUnit4TestClassRunner
.
public java.lang.String getProperty(ApplicationConfigurationFile configFile, java.lang.String key)
protected java.util.Properties loadPropertiesFile(ApplicationConfigurationFile configFile)
currentDataSourceId
- java.io.IOException
Copyright © 2007-2020 EDIT. All Rights Reserved.