Skip to content
Snippets Groups Projects
Commit 661c2ef4 authored by Eduard Moraru's avatar Eduard Moraru
Browse files

XWIKI-12920: Hiding WebHome in wiki link syntax

- Fixed test setups
parent 88371214
No related branches found
No related tags found
No related merge requests found
......@@ -26,8 +26,14 @@
import org.jmock.Expectations;
import org.junit.Before;
import org.xwiki.component.manager.ComponentManager;
import org.xwiki.model.internal.DefaultModelConfiguration;
import org.xwiki.model.internal.reference.DefaultEntityReferenceProvider;
import org.xwiki.rendering.block.XDOM;
import org.xwiki.rendering.internal.macro.chart.source.DataSource;
import org.xwiki.rendering.internal.parser.reference.XWikiUntypedLinkReferenceParser;
import org.xwiki.rendering.internal.parser.reference.type.AttachmentResourceReferenceTypeParser;
import org.xwiki.rendering.internal.parser.reference.type.DocumentResourceReferenceTypeParser;
import org.xwiki.rendering.internal.parser.reference.type.SpaceResourceReferenceTypeParser;
import org.xwiki.rendering.internal.parser.reference.type.URLResourceReferenceTypeParser;
import org.xwiki.rendering.internal.parser.xwiki20.XWiki20ImageReferenceParser;
import org.xwiki.rendering.internal.parser.xwiki20.XWiki20LinkReferenceParser;
......@@ -40,8 +46,8 @@
import org.xwiki.rendering.parser.Parser;
import org.xwiki.rendering.renderer.BlockRenderer;
import org.xwiki.rendering.syntax.Syntax;
import org.xwiki.test.jmock.AbstractMockingComponentTestCase;
import org.xwiki.test.annotation.ComponentList;
import org.xwiki.test.jmock.AbstractMockingComponentTestCase;
import org.xwiki.test.jmock.annotation.MockingRequirement;
/**
......@@ -50,6 +56,7 @@
* @version $Id$
* @since 4.2M1
*/
// @formatter:off
@ComponentList({
PlainTextBlockRenderer.class,
PlainTextRendererFactory.class,
......@@ -58,8 +65,15 @@
URLResourceReferenceTypeParser.class,
XWiki20ImageReferenceParser.class,
PlainTextRenderer.class,
DefaultLinkLabelGenerator.class
DefaultLinkLabelGenerator.class,
XWikiUntypedLinkReferenceParser.class,
DefaultEntityReferenceProvider.class,
DefaultModelConfiguration.class,
DocumentResourceReferenceTypeParser.class,
SpaceResourceReferenceTypeParser.class,
AttachmentResourceReferenceTypeParser.class
})
//@formatter:on
@MockingRequirement(value = MacroContentTableBlockDataSource.class,
exceptions={ComponentManager.class, BlockRenderer.class})
public abstract class AbstractMacroContentTableBlockDataSourceTest extends AbstractMockingComponentTestCase
......
......@@ -48,6 +48,10 @@
import org.xwiki.rendering.internal.parser.DefaultContentParser;
import org.xwiki.rendering.internal.parser.plain.PlainTextBlockParser;
import org.xwiki.rendering.internal.parser.plain.PlainTextStreamParser;
import org.xwiki.rendering.internal.parser.reference.XWikiUntypedLinkReferenceParser;
import org.xwiki.rendering.internal.parser.reference.type.AttachmentResourceReferenceTypeParser;
import org.xwiki.rendering.internal.parser.reference.type.DocumentResourceReferenceTypeParser;
import org.xwiki.rendering.internal.parser.reference.type.SpaceResourceReferenceTypeParser;
import org.xwiki.rendering.internal.parser.reference.type.URLResourceReferenceTypeParser;
import org.xwiki.rendering.internal.parser.xwiki20.XWiki20ImageReferenceParser;
import org.xwiki.rendering.internal.parser.xwiki20.XWiki20LinkReferenceParser;
......@@ -142,6 +146,10 @@
XWiki20Parser.class,
XWiki20LinkReferenceParser.class,
XWiki20ImageReferenceParser.class,
XWikiUntypedLinkReferenceParser.class,
DocumentResourceReferenceTypeParser.class,
SpaceResourceReferenceTypeParser.class,
AttachmentResourceReferenceTypeParser.class,
// XHTML 1.0
XHTMLBlockRenderer.class,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment