Class MockApplicationConfiguration
java.lang.Object
com.atlassian.bamboo.testutils.setup.MockApplicationConfiguration
- All Implemented Interfaces:
com.atlassian.config.ApplicationConfiguration
public class MockApplicationConfiguration
extends Object
implements com.atlassian.config.ApplicationConfiguration
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
getBooleanProperty
(Object key) int
getIntegerProperty
(Object key) int
int
getPropertiesWithPrefix
(String prefix) getProperty
(Object key) boolean
boolean
void
load()
removeProperty
(Object key) void
reset()
void
save()
void
setApplicationHome
(String home) void
setBuildNumber
(String build) void
setConfigurationFileName
(String configurationFileName) void
setConfigurationPersister
(com.atlassian.config.ConfigurationPersister config) void
setCurrentSetupStep
(String currentSetupStep) void
setMajorVersion
(int majorVersion) void
setMinorVersion
(int minorVersion) void
setProperty
(Object key, boolean value) void
setProperty
(Object key, int value) void
setProperty
(Object key, Object value) void
setSetupComplete
(boolean setupComplete) void
setSetupType
(String setupType)
-
Constructor Details
-
MockApplicationConfiguration
public MockApplicationConfiguration() -
MockApplicationConfiguration
-
-
Method Details
-
setApplicationHome
- Specified by:
setApplicationHome
in interfacecom.atlassian.config.ApplicationConfiguration
- Throws:
com.atlassian.config.ConfigurationException
-
getApplicationHome
- Specified by:
getApplicationHome
in interfacecom.atlassian.config.ApplicationConfiguration
-
isApplicationHomeValid
public boolean isApplicationHomeValid()- Specified by:
isApplicationHomeValid
in interfacecom.atlassian.config.ApplicationConfiguration
-
setProperty
- Specified by:
setProperty
in interfacecom.atlassian.config.ApplicationConfiguration
-
setProperty
- Specified by:
setProperty
in interfacecom.atlassian.config.ApplicationConfiguration
-
setProperty
- Specified by:
setProperty
in interfacecom.atlassian.config.ApplicationConfiguration
-
getProperty
- Specified by:
getProperty
in interfacecom.atlassian.config.ApplicationConfiguration
-
getBooleanProperty
- Specified by:
getBooleanProperty
in interfacecom.atlassian.config.ApplicationConfiguration
-
getIntegerProperty
- Specified by:
getIntegerProperty
in interfacecom.atlassian.config.ApplicationConfiguration
-
removeProperty
- Specified by:
removeProperty
in interfacecom.atlassian.config.ApplicationConfiguration
-
getProperties
- Specified by:
getProperties
in interfacecom.atlassian.config.ApplicationConfiguration
-
setBuildNumber
- Specified by:
setBuildNumber
in interfacecom.atlassian.config.ApplicationConfiguration
-
getBuildNumber
- Specified by:
getBuildNumber
in interfacecom.atlassian.config.ApplicationConfiguration
-
getMajorVersion
public int getMajorVersion()- Specified by:
getMajorVersion
in interfacecom.atlassian.config.ApplicationConfiguration
-
setMajorVersion
public void setMajorVersion(int majorVersion) - Specified by:
setMajorVersion
in interfacecom.atlassian.config.ApplicationConfiguration
-
getMinorVersion
public int getMinorVersion()- Specified by:
getMinorVersion
in interfacecom.atlassian.config.ApplicationConfiguration
-
setMinorVersion
public void setMinorVersion(int minorVersion) - Specified by:
setMinorVersion
in interfacecom.atlassian.config.ApplicationConfiguration
-
getApplicationVersion
- Specified by:
getApplicationVersion
in interfacecom.atlassian.config.ApplicationConfiguration
-
getPropertiesWithPrefix
- Specified by:
getPropertiesWithPrefix
in interfacecom.atlassian.config.ApplicationConfiguration
-
isSetupComplete
public boolean isSetupComplete()- Specified by:
isSetupComplete
in interfacecom.atlassian.config.ApplicationConfiguration
-
setSetupComplete
public void setSetupComplete(boolean setupComplete) - Specified by:
setSetupComplete
in interfacecom.atlassian.config.ApplicationConfiguration
-
setConfigurationPersister
public void setConfigurationPersister(com.atlassian.config.ConfigurationPersister config) - Specified by:
setConfigurationPersister
in interfacecom.atlassian.config.ApplicationConfiguration
-
save
public void save() throws com.atlassian.config.ConfigurationException- Specified by:
save
in interfacecom.atlassian.config.ApplicationConfiguration
- Throws:
com.atlassian.config.ConfigurationException
-
reset
public void reset()- Specified by:
reset
in interfacecom.atlassian.config.ApplicationConfiguration
-
getSetupType
- Specified by:
getSetupType
in interfacecom.atlassian.config.ApplicationConfiguration
-
setSetupType
- Specified by:
setSetupType
in interfacecom.atlassian.config.ApplicationConfiguration
-
getCurrentSetupStep
- Specified by:
getCurrentSetupStep
in interfacecom.atlassian.config.ApplicationConfiguration
-
setCurrentSetupStep
- Specified by:
setCurrentSetupStep
in interfacecom.atlassian.config.ApplicationConfiguration
-
load
public void load() throws com.atlassian.config.ConfigurationException- Specified by:
load
in interfacecom.atlassian.config.ApplicationConfiguration
- Throws:
com.atlassian.config.ConfigurationException
-
configFileExists
public boolean configFileExists()- Specified by:
configFileExists
in interfacecom.atlassian.config.ApplicationConfiguration
-
setConfigurationFileName
- Specified by:
setConfigurationFileName
in interfacecom.atlassian.config.ApplicationConfiguration
-