Package org.xwiki.test.integration
Class XWikiTestSetup
- java.lang.Object
-
- junit.framework.Assert
-
- junit.extensions.TestDecorator
-
- junit.extensions.TestSetup
-
- org.xwiki.test.integration.XWikiTestSetup
-
- All Implemented Interfaces:
junit.framework.Test
@Deprecated public class XWikiTestSetup extends junit.extensions.TestSetup
Deprecated.useXWikiExecutorSuite
insteadJUnit 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.
- Version:
- $Id: d3d4f78a16f3f40c91a8aea0dbfa1877304baa0d $
-
-
Constructor Summary
Constructors Constructor Description XWikiTestSetup(junit.framework.Test test)
Deprecated.XWikiTestSetup(junit.framework.Test test, int nb)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected XWikiExecutor
getXWikiExecutor()
Deprecated.protected XWikiExecutor
getXWikiExecutor(int index)
Deprecated.protected void
setUp()
Deprecated.protected void
tearDown()
Deprecated.-
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
-
-
-
-
Method Detail
-
setUp
protected void setUp() throws Exception
Deprecated.- Overrides:
setUp
in classjunit.extensions.TestSetup
- Throws:
Exception
-
tearDown
protected void tearDown() throws Exception
Deprecated.- Overrides:
tearDown
in classjunit.extensions.TestSetup
- Throws:
Exception
-
getXWikiExecutor
protected XWikiExecutor getXWikiExecutor()
Deprecated.
-
getXWikiExecutor
protected XWikiExecutor getXWikiExecutor(int index)
Deprecated.
-
-