org.xwiki.rendering.test
Class MockWikiModel
java.lang.Object
org.xwiki.rendering.test.MockWikiModel
- All Implemented Interfaces:
- WikiModel
public class MockWikiModel
- extends Object
- implements WikiModel
Mock WikiModel implementation for integration tests.
- Since:
- 2.0M1
- Version:
- $Id: ff2ec9d768a432606e1fbc4f4c541bdfb163c1d7 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockWikiModel
public MockWikiModel()
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 interface WikiModel
- Since:
- 2.5RC1
getImageURL
public String getImageURL(ResourceReference imageReference,
Map<String,String> parameters)
- Specified by:
getImageURL in interface WikiModel
getDocumentEditURL
public String getDocumentEditURL(ResourceReference documentReference)
- Specified by:
getDocumentEditURL in interface WikiModel
getDocumentViewURL
public String getDocumentViewURL(ResourceReference documentReference)
- Specified by:
getDocumentViewURL in interface WikiModel
isDocumentAvailable
public boolean isDocumentAvailable(ResourceReference documentReference)
- Specified by:
isDocumentAvailable in interface WikiModel
Copyright © 2004-2013 XWiki. All Rights Reserved.