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
Constructors Constructor Description MockApplicationConfiguration()
MockApplicationConfiguration(Map<String,String> properties)
-
Method Summary
-
-
-
Method Detail
-
setApplicationHome
public void setApplicationHome(String home) throws com.atlassian.config.ConfigurationException
- Specified by:
setApplicationHome
in interfacecom.atlassian.config.ApplicationConfiguration
- Throws:
com.atlassian.config.ConfigurationException
-
getApplicationHome
public String getApplicationHome()
- Specified by:
getApplicationHome
in interfacecom.atlassian.config.ApplicationConfiguration
-
isApplicationHomeValid
public boolean isApplicationHomeValid()
- Specified by:
isApplicationHomeValid
in interfacecom.atlassian.config.ApplicationConfiguration
-
setProperty
public void setProperty(Object key, Object value)
- Specified by:
setProperty
in interfacecom.atlassian.config.ApplicationConfiguration
-
setProperty
public void setProperty(Object key, int value)
- Specified by:
setProperty
in interfacecom.atlassian.config.ApplicationConfiguration
-
setProperty
public void setProperty(Object key, boolean value)
- Specified by:
setProperty
in interfacecom.atlassian.config.ApplicationConfiguration
-
getProperty
public Object getProperty(Object key)
- Specified by:
getProperty
in interfacecom.atlassian.config.ApplicationConfiguration
-
getBooleanProperty
public boolean getBooleanProperty(Object key)
- Specified by:
getBooleanProperty
in interfacecom.atlassian.config.ApplicationConfiguration
-
getIntegerProperty
public int getIntegerProperty(Object key)
- Specified by:
getIntegerProperty
in interfacecom.atlassian.config.ApplicationConfiguration
-
removeProperty
public Object removeProperty(Object key)
- Specified by:
removeProperty
in interfacecom.atlassian.config.ApplicationConfiguration
-
getProperties
public Map getProperties()
- Specified by:
getProperties
in interfacecom.atlassian.config.ApplicationConfiguration
-
setBuildNumber
public void setBuildNumber(String build)
- Specified by:
setBuildNumber
in interfacecom.atlassian.config.ApplicationConfiguration
-
getBuildNumber
public String 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
public String getApplicationVersion()
- Specified by:
getApplicationVersion
in interfacecom.atlassian.config.ApplicationConfiguration
-
getPropertiesWithPrefix
public Map<String,Object> getPropertiesWithPrefix(String prefix)
- 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
public String getSetupType()
- Specified by:
getSetupType
in interfacecom.atlassian.config.ApplicationConfiguration
-
setSetupType
public void setSetupType(String setupType)
- Specified by:
setSetupType
in interfacecom.atlassian.config.ApplicationConfiguration
-
getCurrentSetupStep
public String getCurrentSetupStep()
- Specified by:
getCurrentSetupStep
in interfacecom.atlassian.config.ApplicationConfiguration
-
setCurrentSetupStep
public void setCurrentSetupStep(String currentSetupStep)
- 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
public void setConfigurationFileName(String configurationFileName)
- Specified by:
setConfigurationFileName
in interfacecom.atlassian.config.ApplicationConfiguration
-
-