Package org.xwiki.rendering.test
Class MockWikiModel
- java.lang.Object
-
- org.xwiki.rendering.test.MockWikiModel
-
-
Constructor Summary
Constructors Constructor Description MockWikiModel()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.xwiki.component.descriptor.ComponentDescriptor<WikiModel>
getComponentDescriptor()
Create and return a descriptor for this component.String
getDocumentEditURL(ResourceReference documentReference)
String
getDocumentViewURL(ResourceReference documentReference)
String
getImageURL(ResourceReference imageReference, Map<String,String> parameters)
String
getLinkURL(ResourceReference linkReference)
boolean
isDocumentAvailable(ResourceReference documentReference)
-
-
-
Method Detail
-
getComponentDescriptor
public static org.xwiki.component.descriptor.ComponentDescriptor<WikiModel> getComponentDescriptor()
Create and return a descriptor for this component.- Returns:
- the descriptor of the component.
-
getLinkURL
public String getLinkURL(ResourceReference linkReference)
- Specified by:
getLinkURL
in interfaceWikiModel
- Since:
- 2.5RC1
-
getImageURL
public String getImageURL(ResourceReference imageReference, Map<String,String> parameters)
- Specified by:
getImageURL
in interfaceWikiModel
-
getDocumentEditURL
public String getDocumentEditURL(ResourceReference documentReference)
- Specified by:
getDocumentEditURL
in interfaceWikiModel
-
getDocumentViewURL
public String getDocumentViewURL(ResourceReference documentReference)
- Specified by:
getDocumentViewURL
in interfaceWikiModel
-
isDocumentAvailable
public boolean isDocumentAvailable(ResourceReference documentReference)
- Specified by:
isDocumentAvailable
in interfaceWikiModel
-
-