org.xwiki.test.integration
Class XWikiExecutor
java.lang.Object
org.xwiki.test.integration.XWikiExecutor
public class XWikiExecutor
- extends Object
Start and stop a xwiki instance.
- Since:
- 2.0RC1
- Version:
- $Id: c6733c78e4f46a7a30557013a49bcfe83d0db900 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOGGER
protected static final org.slf4j.Logger LOGGER
SKIP_STARTING_XWIKI_INSTANCE
public static final String SKIP_STARTING_XWIKI_INSTANCE
BASEDIR
public static final String BASEDIR
URL
public static final String URL
DEFAULT_PORT
public static final String DEFAULT_PORT
DEFAULT_STOPPORT
public static final String DEFAULT_STOPPORT
DEFAULT_RMIPORT
public static final String DEFAULT_RMIPORT
XWikiExecutor
public XWikiExecutor(int index)
getPort
public int getPort()
getStopPort
public int getStopPort()
getRMIPort
public int getRMIPort()
getExecutionDirectory
public String getExecutionDirectory()
setXWikiOpts
public void setXWikiOpts(String opts)
addEnvironmentVariable
public void addEnvironmentVariable(String key,
String value)
start
public void start()
throws Exception
- Throws:
Exception
isXWikiStarted
public org.xwiki.test.integration.XWikiExecutor.Response isXWikiStarted(String url,
int timeout)
throws Exception
- Throws:
Exception
stop
public void stop()
throws Exception
- Throws:
Exception
getWebInfDirectory
public String getWebInfDirectory()
getXWikiCfgPath
public String getXWikiCfgPath()
getXWikiPropertiesPath
public String getXWikiPropertiesPath()
loadXWikiCfg
public Properties loadXWikiCfg()
throws Exception
- Throws:
Exception
loadXWikiProperties
public Properties loadXWikiProperties()
throws Exception
- Throws:
Exception
loadXWikiPropertiesConfiguration
public org.apache.commons.configuration.PropertiesConfiguration loadXWikiPropertiesConfiguration()
throws Exception
- Throws:
Exception
saveXWikiCfg
public void saveXWikiCfg(Properties properties)
throws Exception
- Throws:
Exception
saveXWikiProperties
@Deprecated
public void saveXWikiProperties(Properties properties)
throws Exception
- Deprecated. since 4.2M1 use
saveXWikiProperties(PropertiesConfiguration) instead
- Throws:
Exception
saveXWikiProperties
public void saveXWikiProperties(org.apache.commons.configuration.PropertiesConfiguration properties)
throws Exception
- Throws:
Exception- Since:
- 4.2M1
Copyright © 2004-2013 XWiki. All Rights Reserved.