org.xwiki.rendering.test
Class MockWikiModel

java.lang.Object
  extended by 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 $

Constructor Summary
MockWikiModel()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockWikiModel

public MockWikiModel()
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 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.