Ejemplo n.º 1
0
  /**
   * Switch back to single language mode and stop XWiki server if no longer needed.
   *
   * @throws Exception on errors
   */
  @AfterSuite
  public static void shutdown() throws Exception {
    // restore single language mode
    AbstractEscapingTest.setMultiLanguageMode(false);

    SingleXWikiExecutor.getExecutor().stop();
  }
Ejemplo n.º 2
0
  /**
   * Start XWiki server if needed and switch to multi-language mode.
   *
   * @throws Exception on errors
   */
  @BeforeSuite
  public static void init() throws Exception {
    SingleXWikiExecutor.getExecutor().start();

    // for tests using "language" parameter
    AbstractEscapingTest.setMultiLanguageMode(true);
  }