1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
package org.xwiki.test.ui; |
21 |
|
|
22 |
|
import java.util.List; |
23 |
|
|
24 |
|
import org.apache.commons.configuration.PropertiesConfiguration; |
25 |
|
import org.junit.runner.RunWith; |
26 |
|
import org.slf4j.Logger; |
27 |
|
import org.slf4j.LoggerFactory; |
28 |
|
import org.xwiki.test.integration.XWikiExecutor; |
29 |
|
import org.xwiki.test.integration.XWikiExecutorSuite; |
30 |
|
|
31 |
|
|
32 |
|
|
33 |
|
|
34 |
|
@version |
35 |
|
@since |
36 |
|
|
37 |
|
@RunWith(PageObjectSuite.class) |
|
|
| 100% |
Uncovered Elements: 0 (6) |
Complexity: 1 |
Complexity Density: 0.2 |
|
38 |
|
public class AllTests |
39 |
|
{ |
40 |
|
private static final Logger LOGGER = LoggerFactory.getLogger(AllTests.class); |
41 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 1 |
Complexity Density: 0.2 |
|
42 |
1 |
@XWikiExecutorSuite.PreStart... |
43 |
|
public void preStart(List<XWikiExecutor> executors) throws Exception |
44 |
|
{ |
45 |
1 |
XWikiExecutor executor = executors.get(0); |
46 |
|
|
47 |
1 |
LOGGER.info("Put back the old WYSIWYG editor in xwiki.properties"); |
48 |
|
|
49 |
1 |
PropertiesConfiguration properties = executor.loadXWikiPropertiesConfiguration(); |
50 |
1 |
properties.setProperty("edit.defaultEditor.org.xwiki.rendering.syntax.SyntaxContent#wysiwyg", "gwt"); |
51 |
1 |
executor.saveXWikiProperties(properties); |
52 |
|
} |
53 |
|
} |