com.atlassian.jira.config.util
Class MockJiraHome

java.lang.Object
  extended by com.atlassian.jira.config.util.AbstractJiraHome
      extended by com.atlassian.jira.config.util.MockJiraHome
All Implemented Interfaces:
JiraHome

public class MockJiraHome
extends AbstractJiraHome


Field Summary
 
Fields inherited from interface com.atlassian.jira.config.util.JiraHome
CACHES, DATA, EXPORT, IMPORT, IMPORT_ATTACHMENTS, localsubdirs, LOG, PLUGINS, sharedsubdirs, subdirs
 
Constructor Summary
MockJiraHome()
           
MockJiraHome(String homePath)
           
MockJiraHome(String localHomePath, String sharedHomePath)
           
 
Method Summary
 File getHome()
          Get the File object representing the JIRA home directory.
 File getLocalHome()
          Get the File object representing the JIRA local home directory.
 void setHomePath(String homePath)
           
 
Methods inherited from class com.atlassian.jira.config.util.AbstractJiraHome
getCachesDirectory, getDataDirectory, getExportDirectory, getHomePath, getImportAttachmentsDirectory, getImportDirectory, getLocalHomePath, getLogDirectory, getPluginsDirectory, getSharedCachesDirectory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockJiraHome

public MockJiraHome()

MockJiraHome

public MockJiraHome(String homePath)

MockJiraHome

public MockJiraHome(String localHomePath,
                    String sharedHomePath)
Method Detail

getHome

@Nonnull
public File getHome()
Description copied from interface: JiraHome
Get the File object representing the JIRA home directory.

Specified by:
getHome in interface JiraHome
Overrides:
getHome in class AbstractJiraHome
Returns:
the file path, must be a directory

getLocalHome

@Nonnull
public File getLocalHome()
Description copied from interface: JiraHome
Get the File object representing the JIRA local home directory. In a clustered or HA deployment this will be different from jira.home, but in a standalone installation will generally be the same as jira.home.

Returns:
the file path, must be a directory

setHomePath

public void setHomePath(String homePath)


Copyright © 2002-2014 Atlassian. All Rights Reserved.