org.xwiki.test.integration
Class XWikiTestSetup

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.extensions.TestDecorator
          extended by junit.extensions.TestSetup
              extended by org.xwiki.test.integration.XWikiTestSetup
All Implemented Interfaces:
junit.framework.Test

Deprecated. use XWikiExecutorSuite instead

@Deprecated
public class XWikiTestSetup
extends junit.extensions.TestSetup

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.

Version:
$Id: 89c9e75a3a7669b349540879639e6f2ffa477786 $

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

XWikiTestSetup

public XWikiTestSetup(junit.framework.Test test)
               throws Exception
Deprecated. 
Throws:
Exception

XWikiTestSetup

public XWikiTestSetup(junit.framework.Test test,
                      int nb)
               throws Exception
Deprecated. 
Throws:
Exception
Method Detail

setUp

protected void setUp()
              throws Exception
Deprecated. 
Overrides:
setUp in class junit.extensions.TestSetup
Throws:
Exception

tearDown

protected void tearDown()
                 throws Exception
Deprecated. 
Overrides:
tearDown in class junit.extensions.TestSetup
Throws:
Exception

getXWikiExecutor

protected XWikiExecutor getXWikiExecutor()
Deprecated. 

getXWikiExecutor

protected XWikiExecutor getXWikiExecutor(int index)
Deprecated. 


Copyright © 2004-2013 XWiki. All Rights Reserved.