Class MockApplicationConfiguration

  • All Implemented Interfaces:
    com.atlassian.config.ApplicationConfiguration

    public class MockApplicationConfiguration
    extends Object
    implements com.atlassian.config.ApplicationConfiguration
    • Constructor Detail

      • MockApplicationConfiguration

        public MockApplicationConfiguration()
      • MockApplicationConfiguration

        public MockApplicationConfiguration​(Map<String,​String> properties)
    • Method Detail

      • setApplicationHome

        public void setApplicationHome​(String home)
                                throws com.atlassian.config.ConfigurationException
        Specified by:
        setApplicationHome in interface com.atlassian.config.ApplicationConfiguration
        Throws:
        com.atlassian.config.ConfigurationException
      • getApplicationHome

        public String getApplicationHome()
        Specified by:
        getApplicationHome in interface com.atlassian.config.ApplicationConfiguration
      • isApplicationHomeValid

        public boolean isApplicationHomeValid()
        Specified by:
        isApplicationHomeValid in interface com.atlassian.config.ApplicationConfiguration
      • setProperty

        public void setProperty​(Object key,
                                Object value)
        Specified by:
        setProperty in interface com.atlassian.config.ApplicationConfiguration
      • setProperty

        public void setProperty​(Object key,
                                int value)
        Specified by:
        setProperty in interface com.atlassian.config.ApplicationConfiguration
      • setProperty

        public void setProperty​(Object key,
                                boolean value)
        Specified by:
        setProperty in interface com.atlassian.config.ApplicationConfiguration
      • getProperty

        public Object getProperty​(Object key)
        Specified by:
        getProperty in interface com.atlassian.config.ApplicationConfiguration
      • getBooleanProperty

        public boolean getBooleanProperty​(Object key)
        Specified by:
        getBooleanProperty in interface com.atlassian.config.ApplicationConfiguration
      • getIntegerProperty

        public int getIntegerProperty​(Object key)
        Specified by:
        getIntegerProperty in interface com.atlassian.config.ApplicationConfiguration
      • removeProperty

        public Object removeProperty​(Object key)
        Specified by:
        removeProperty in interface com.atlassian.config.ApplicationConfiguration
      • getProperties

        public Map getProperties()
        Specified by:
        getProperties in interface com.atlassian.config.ApplicationConfiguration
      • setBuildNumber

        public void setBuildNumber​(String build)
        Specified by:
        setBuildNumber in interface com.atlassian.config.ApplicationConfiguration
      • getBuildNumber

        public String getBuildNumber()
        Specified by:
        getBuildNumber in interface com.atlassian.config.ApplicationConfiguration
      • getMajorVersion

        public int getMajorVersion()
        Specified by:
        getMajorVersion in interface com.atlassian.config.ApplicationConfiguration
      • setMajorVersion

        public void setMajorVersion​(int majorVersion)
        Specified by:
        setMajorVersion in interface com.atlassian.config.ApplicationConfiguration
      • getMinorVersion

        public int getMinorVersion()
        Specified by:
        getMinorVersion in interface com.atlassian.config.ApplicationConfiguration
      • setMinorVersion

        public void setMinorVersion​(int minorVersion)
        Specified by:
        setMinorVersion in interface com.atlassian.config.ApplicationConfiguration
      • getApplicationVersion

        public String getApplicationVersion()
        Specified by:
        getApplicationVersion in interface com.atlassian.config.ApplicationConfiguration
      • getPropertiesWithPrefix

        public Map<String,​Object> getPropertiesWithPrefix​(String prefix)
        Specified by:
        getPropertiesWithPrefix in interface com.atlassian.config.ApplicationConfiguration
      • isSetupComplete

        public boolean isSetupComplete()
        Specified by:
        isSetupComplete in interface com.atlassian.config.ApplicationConfiguration
      • setSetupComplete

        public void setSetupComplete​(boolean setupComplete)
        Specified by:
        setSetupComplete in interface com.atlassian.config.ApplicationConfiguration
      • setConfigurationPersister

        public void setConfigurationPersister​(com.atlassian.config.ConfigurationPersister config)
        Specified by:
        setConfigurationPersister in interface com.atlassian.config.ApplicationConfiguration
      • save

        public void save()
                  throws com.atlassian.config.ConfigurationException
        Specified by:
        save in interface com.atlassian.config.ApplicationConfiguration
        Throws:
        com.atlassian.config.ConfigurationException
      • reset

        public void reset()
        Specified by:
        reset in interface com.atlassian.config.ApplicationConfiguration
      • getSetupType

        public String getSetupType()
        Specified by:
        getSetupType in interface com.atlassian.config.ApplicationConfiguration
      • setSetupType

        public void setSetupType​(String setupType)
        Specified by:
        setSetupType in interface com.atlassian.config.ApplicationConfiguration
      • getCurrentSetupStep

        public String getCurrentSetupStep()
        Specified by:
        getCurrentSetupStep in interface com.atlassian.config.ApplicationConfiguration
      • setCurrentSetupStep

        public void setCurrentSetupStep​(String currentSetupStep)
        Specified by:
        setCurrentSetupStep in interface com.atlassian.config.ApplicationConfiguration
      • load

        public void load()
                  throws com.atlassian.config.ConfigurationException
        Specified by:
        load in interface com.atlassian.config.ApplicationConfiguration
        Throws:
        com.atlassian.config.ConfigurationException
      • configFileExists

        public boolean configFileExists()
        Specified by:
        configFileExists in interface com.atlassian.config.ApplicationConfiguration
      • setConfigurationFileName

        public void setConfigurationFileName​(String configurationFileName)
        Specified by:
        setConfigurationFileName in interface com.atlassian.config.ApplicationConfiguration