public abstract class AbstractTest extends Object
Modifier and Type | Field and Description |
---|---|
BrowserTestRule |
browserRule
Used for ignoring tests that use
IgnoreBrowser and
IgnoreBrowsers annotations. |
protected static org.xwiki.component.embed.EmbeddableComponentManager |
componentManager |
protected static PersistentTestContext |
context |
TestDebugger |
testDebugger
Generates debugging information on test failure.
|
org.junit.rules.TestName |
testName
The object used to access the name of the current test.
|
static ValidateConsoleRule |
validateConsole
Validate stdout/stderr for problems.
|
Constructor and Description |
---|
AbstractTest() |
Modifier and Type | Method and Description |
---|---|
void |
beforeTest() |
static PersistentTestContext |
getContext() |
protected static XWikiWebDriver |
getDriver() |
protected String |
getTestClassName() |
protected String |
getTestMethodName() |
protected static TestUtils |
getUtil() |
static void |
init() |
static void |
init(List<XWikiExecutor> executors) |
static void |
initializeSystem(PersistentTestContext context)
Used so that AllTests can set the persistent test context.
|
static void |
setContext(PersistentTestContext testContext) |
static void |
shutdown() |
public static final ValidateConsoleRule validateConsole
public final org.junit.rules.TestName testName
public BrowserTestRule browserRule
IgnoreBrowser
and
IgnoreBrowsers
annotations.public TestDebugger testDebugger
protected static PersistentTestContext context
protected static org.xwiki.component.embed.EmbeddableComponentManager componentManager
public static void initializeSystem(PersistentTestContext context) throws Exception
Exception
public static void setContext(PersistentTestContext testContext)
public static PersistentTestContext getContext()
public static void init(List<XWikiExecutor> executors) throws Exception
Exception
public void beforeTest()
protected String getTestMethodName()
protected String getTestClassName()
protected static XWikiWebDriver getDriver()
protected static TestUtils getUtil()
Copyright © 2004–2021 XWiki. All rights reserved.