Class PersistentTestContext


  • public class PersistentTestContext
    extends Object
    This is a container for holding all of the information which should persist throughout all of the tests.
    Since:
    3.2M3
    Version:
    $Id: 31716624c39bad98e57c4a167e99aaa956a5ff27 $
    • Constructor Detail

      • PersistentTestContext

        public PersistentTestContext()
                              throws Exception
        Starts an XWiki instance if not already started.
        Throws:
        Exception
      • PersistentTestContext

        public PersistentTestContext​(List<XWikiExecutor> executors)
        Don't start an XWiki instance, instead use an existing started instance.
    • Method Detail

      • getUtil

        public TestUtils getUtil()
        Returns:
        Utility class with functions not specific to any test or element.
      • getUnstoppable

        public PersistentTestContext getUnstoppable()
        Get a clone of this context which cannot be stopped by calling shutdown. this is needed so that individual tests don't shutdown when AllTests are being run.