Package org.xwiki.test.ui
Class PersistentTestContext
- java.lang.Object
-
- org.xwiki.test.ui.PersistentTestContext
-
public class PersistentTestContext extends Object
This is a container for holding all of the information which should persist throughout all of the tests.- Since:
- 3.2M3
- Version:
- $Id: 31716624c39bad98e57c4a167e99aaa956a5ff27 $
-
-
Constructor Summary
Constructors Constructor Description PersistentTestContext()
Starts an XWiki instance if not already started.PersistentTestContext(List<XWikiExecutor> executors)
Don't start an XWiki instance, instead use an existing started instance.PersistentTestContext(List<XWikiExecutor> executors, XWikiWebDriver driver)
PersistentTestContext(PersistentTestContext toClone)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XWikiWebDriver
getDriver()
List<XWikiExecutor>
getExecutors()
Map<String,Object>
getProperties()
PersistentTestContext
getUnstoppable()
Get a clone of this context which cannot be stopped by calling shutdown.TestUtils
getUtil()
void
setDriver(XWikiWebDriver driver)
void
shutdown()
void
start()
-
-
-
Constructor Detail
-
PersistentTestContext
public PersistentTestContext() throws Exception
Starts an XWiki instance if not already started.- Throws:
Exception
-
PersistentTestContext
public PersistentTestContext(List<XWikiExecutor> executors)
Don't start an XWiki instance, instead use an existing started instance.
-
PersistentTestContext
public PersistentTestContext(List<XWikiExecutor> executors, XWikiWebDriver driver)
-
PersistentTestContext
public PersistentTestContext(PersistentTestContext toClone)
-
-
Method Detail
-
getDriver
public XWikiWebDriver getDriver()
-
setDriver
public void setDriver(XWikiWebDriver driver)
-
getExecutors
public List<XWikiExecutor> getExecutors()
-
getUtil
public TestUtils getUtil()
- Returns:
- Utility class with functions not specific to any test or element.
-
getUnstoppable
public PersistentTestContext getUnstoppable()
Get a clone of this context which cannot be stopped by calling shutdown. this is needed so that individual tests don't shutdown when AllTests are being run.
-
-