|
25 | 25 | import org.junit.jupiter.api.Test; |
26 | 26 | import org.w3c.dom.Document; |
27 | 27 | import org.xwiki.component.manager.ComponentManager; |
28 | | -import org.xwiki.configuration.internal.RestrictedConfigurationSourceProvider; |
29 | | -import org.xwiki.context.internal.DefaultExecution; |
30 | | -import org.xwiki.test.annotation.ComponentList; |
31 | 28 | import org.xwiki.test.junit5.mockito.ComponentTest; |
32 | | -import org.xwiki.xml.internal.html.DefaultHTMLCleaner; |
33 | 29 | import org.xwiki.xml.internal.html.DefaultHTMLCleanerTest; |
34 | | -import org.xwiki.xml.internal.html.DefaultHTMLElementSanitizer; |
35 | | -import org.xwiki.xml.internal.html.HTMLDefinitions; |
36 | | -import org.xwiki.xml.internal.html.HTMLElementSanitizerConfiguration; |
37 | | -import org.xwiki.xml.internal.html.MathMLDefinitions; |
38 | | -import org.xwiki.xml.internal.html.SVGDefinitions; |
39 | | -import org.xwiki.xml.internal.html.SecureHTMLElementSanitizer; |
40 | | -import org.xwiki.xml.internal.html.XWikiHTML5TagProvider; |
41 | | -import org.xwiki.xml.internal.html.filter.AttributeFilter; |
42 | | -import org.xwiki.xml.internal.html.filter.BodyFilter; |
43 | | -import org.xwiki.xml.internal.html.filter.FontFilter; |
44 | | -import org.xwiki.xml.internal.html.filter.LinkFilter; |
45 | | -import org.xwiki.xml.internal.html.filter.ListFilter; |
46 | | -import org.xwiki.xml.internal.html.filter.ListItemFilter; |
47 | | -import org.xwiki.xml.internal.html.filter.SanitizerFilter; |
48 | 30 |
|
49 | 31 | import static org.junit.jupiter.api.Assertions.assertEquals; |
50 | 32 | import static org.junit.jupiter.api.Assertions.assertFalse; |
|
57 | 39 | * @since 1.8.3 |
58 | 40 | */ |
59 | 41 | @ComponentTest |
60 | | -@ComponentList({ |
61 | | - LinkFilter.class, |
62 | | - ListFilter.class, |
63 | | - ListItemFilter.class, |
64 | | - FontFilter.class, |
65 | | - BodyFilter.class, |
66 | | - AttributeFilter.class, |
67 | | - SanitizerFilter.class, |
68 | | - DefaultHTMLElementSanitizer.class, |
69 | | - SecureHTMLElementSanitizer.class, |
70 | | - HTMLElementSanitizerConfiguration.class, |
71 | | - RestrictedConfigurationSourceProvider.class, |
72 | | - HTMLDefinitions.class, |
73 | | - MathMLDefinitions.class, |
74 | | - SVGDefinitions.class, |
75 | | - DefaultHTMLCleaner.class, |
76 | | - DefaultExecution.class, |
77 | | - XWikiHTML5TagProvider.class |
78 | | -}) |
| 42 | +@DefaultHTMLCleanerComponentList |
79 | 43 | class HTMLUtilsTest |
80 | 44 | { |
81 | 45 | private HTMLCleaner cleaner; |
|
0 commit comments