Class XWikiTestSetup

  • All Implemented Interfaces:
    junit.framework.Test

    @Deprecated
    public class XWikiTestSetup
    extends junit.extensions.TestSetup
    Deprecated.
    use XWikiExecutorSuite instead
    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: d3d4f78a16f3f40c91a8aea0dbfa1877304baa0d $
    • Field Summary

      • Fields inherited from class junit.extensions.TestDecorator

        fTest
    • 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.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
    • 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.