|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.extensions.TestDecorator
junit.extensions.TestSetup
org.xwiki.test.integration.XWikiTestSetup
XWikiExecutorSuite instead
@Deprecated public class XWikiTestSetup
JUnit TestSetup extension that starts/stops XWiki using a script passed using System Properties. These properties are meant to be passed by the underlying build system. This class is meant to wrap a JUnit TestSuite. For example:
<code>
public static Test suite()
{
// Create some TestSuite object here
return new XWikiTestSetup(suite);
}
</code>
Note: We could start XWiki using Java directly but we're using a script so that we can test the exact same script used by XWiki users who download the standalone distribution.
| Field Summary |
|---|
| Fields inherited from class junit.extensions.TestDecorator |
|---|
fTest |
| Constructor Summary | |
|---|---|
XWikiTestSetup(junit.framework.Test test)
Deprecated. |
|
XWikiTestSetup(junit.framework.Test test,
int nb)
Deprecated. |
|
| Method Summary | |
|---|---|
protected XWikiExecutor |
getXWikiExecutor()
Deprecated. |
protected XWikiExecutor |
getXWikiExecutor(int index)
Deprecated. |
protected void |
setUp()
Deprecated. |
protected void |
tearDown()
Deprecated. |
| Methods inherited from class junit.extensions.TestSetup |
|---|
run |
| Methods inherited from class junit.extensions.TestDecorator |
|---|
basicRun, countTestCases, getTest, toString |
| Methods inherited from class junit.framework.Assert |
|---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public XWikiTestSetup(junit.framework.Test test)
throws Exception
Exception
public XWikiTestSetup(junit.framework.Test test,
int nb)
throws Exception
Exception| Method Detail |
|---|
protected void setUp()
throws Exception
setUp in class junit.extensions.TestSetupException
protected void tearDown()
throws Exception
tearDown in class junit.extensions.TestSetupExceptionprotected XWikiExecutor getXWikiExecutor()
protected XWikiExecutor getXWikiExecutor(int index)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||