Class | Line # | Actions | |||||
---|---|---|---|---|---|---|---|
AllTests | 45 | 2 | 0% | 2 | 0 |
1 | /* | |
2 | * See the NOTICE file distributed with this work for additional | |
3 | * information regarding copyright ownership. | |
4 | * | |
5 | * This is free software; you can redistribute it and/or modify it | |
6 | * under the terms of the GNU Lesser General Public License as | |
7 | * published by the Free Software Foundation; either version 2.1 of | |
8 | * the License, or (at your option) any later version. | |
9 | * | |
10 | * This software is distributed in the hope that it will be useful, | |
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
13 | * Lesser General Public License for more details. | |
14 | * | |
15 | * You should have received a copy of the GNU Lesser General Public | |
16 | * License along with this software; if not, write to the Free | |
17 | * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | |
18 | * 02110-1301 USA, or see the FSF site: http://www.fsf.org. | |
19 | */ | |
20 | package org.xwiki.test.escaping; | |
21 | ||
22 | import org.junit.AfterClass; | |
23 | import org.junit.BeforeClass; | |
24 | import org.junit.extensions.cpsuite.ClasspathSuite; | |
25 | import org.junit.runner.RunWith; | |
26 | import org.xwiki.test.escaping.framework.SingleXWikiExecutor; | |
27 | ||
28 | /** | |
29 | * Parent test suite that runs all functional escaping tests. Starts XWiki server before other tests | |
30 | * and stops it afterwards. | |
31 | * | |
32 | * TODO | |
33 | * - check that the fixed templates are fixed | |
34 | * - add over-escaping test | |
35 | * - test for escaping of action | |
36 | * - need to test comments*.vm on a page with comments | |
37 | * - create the space and page named {@link org.xwiki.test.escaping.framework.XMLEscapingValidator#getTestString()} | |
38 | * before running space/page tests | |
39 | * - sometimes, templates need the document to be in syntax 1.0 | |
40 | * | |
41 | * @version $Id: 1e134e21b8e153110a1d12e63058c1a3a2ec7ddd $ | |
42 | * @since 2.5M1 | |
43 | */ | |
44 | @RunWith(ClasspathSuite.class) | |
45 | public class AllTests | |
46 | { | |
47 | /** | |
48 | * Start XWiki server. | |
49 | * | |
50 | * @throws Exception on errors | |
51 | */ | |
52 | 1 | ![]() |
53 | public static void init() throws Exception | |
54 | { | |
55 | 1 | SingleXWikiExecutor.getExecutor().start(); |
56 | } | |
57 | ||
58 | /** | |
59 | * Stop XWiki server. | |
60 | * | |
61 | * @throws Exception on errors | |
62 | */ | |
63 | 1 | ![]() |
64 | public static void shutdown() throws Exception | |
65 | { | |
66 | 1 | SingleXWikiExecutor.getExecutor().stop(); |
67 | } | |
68 | } |