| java.lang.Object com.ecyrd.jspwiki.WikiEngine com.ecyrd.jspwiki.TestEngine
TestEngine | public class TestEngine extends WikiEngine (Code) | | Simple test engine that always assumes pages are found.
|
Field Summary | |
static Logger | log |
addAttachment | public void addAttachment(String pageName, String attachmentName, byte[] data) throws ProviderException, IOException(Code) | | Adds an attachment to a page for testing purposes.
Parameters: pageName - Parameters: attachmentName - Parameters: data - |
adminSession | public WikiSession adminSession()(Code) | | Creates WikiSession with the privileges of the administrative user.
For testing purposes, obviously.
the wiki session |
deleteAll | public static void deleteAll(File file)(Code) | | Deletes all files under this directory, and does them recursively.
|
deleteAttachments | public void deleteAttachments(String page)(Code) | | Deletes all attachments related to the given page.
|
deleteTestPage | public static void deleteTestPage(String name)(Code) | | Removes a page, but not any auxiliary information. Works only
with FileSystemProvider.
|
emptyWorkDir | public static void emptyWorkDir()(Code) | | |
guestSession | public WikiSession guestSession()(Code) | | Creates guest WikiSession with the no privileges.
For testing purposes, obviously.
the wiki session |
janneSession | public WikiSession janneSession()(Code) | | Creates WikiSession with the privileges of the Janne.
For testing purposes, obviously.
the wiki session |
makeAttachmentFile | public File makeAttachmentFile() throws Exception(Code) | | Makes a temporary file with some content, and returns a handle to it.
|
saveText | public void saveText(String pageName, String content) throws WikiException(Code) | | Convenience method that saves a wiki page by constructing a fake
WikiContext and HttpServletRequest. We always want to do this using a
WikiContext whose subject contains Role.ADMIN.
Parameters: pageName - Parameters: content - throws: WikiException - |
trace | public static void trace()(Code) | | |
Methods inherited from com.ecyrd.jspwiki.WikiEngine | final public synchronized void addWikiEventListener(WikiEventListener listener)(Code)(Java Doc) public String beautifyTitle(String title)(Code)(Java Doc) public String beautifyTitleNoBreak(String title)(Code)(Java Doc) public WikiContext createContext(HttpServletRequest request, String requestContext)(Code)(Java Doc) public String decodeName(String pagerequest)(Code)(Java Doc) public void deletePage(String pageName) throws ProviderException(Code)(Java Doc) public void deleteVersion(WikiPage page) throws ProviderException(Code)(Java Doc) public String encodeName(String pagename)(Code)(Java Doc) public Collection findPages(String query) throws ProviderException, IOException(Code)(Java Doc) final protected void fireEvent(int type)(Code)(Java Doc) public AclManager getAclManager()(Code)(Java Doc) public AdminBeanManager getAdminBeanManager()(Code)(Java Doc) public Collection getAllInlinedImagePatterns()(Code)(Java Doc) public Collection getAllInterWikiLinks()(Code)(Java Doc) public String getApplicationName()(Code)(Java Doc) public AttachmentManager getAttachmentManager()(Code)(Java Doc) public String getAttachmentURL(String attName)(Code)(Java Doc) public Object getAttribute(String key)(Code)(Java Doc) public AuthenticationManager getAuthenticationManager()(Code)(Java Doc) public AuthorizationManager getAuthorizationManager()(Code)(Java Doc) public String getBaseURL()(Code)(Java Doc) public CommandResolver getCommandResolver()(Code)(Java Doc) public String getContentEncoding()(Code)(Java Doc) public String getCurrentProvider()(Code)(Java Doc) public String getCurrentProviderInfo()(Code)(Java Doc) public WatchDog getCurrentWatchDog()(Code)(Java Doc) public String getDiff(WikiContext context, int version1, int version2)(Code)(Java Doc) public DifferenceManager getDifferenceManager()(Code)(Java Doc) public String getEditURL(String pageName)(Code)(Java Doc) public EditorManager getEditorManager()(Code)(Java Doc) public FilterManager getFilterManager()(Code)(Java Doc) public String getFinalPageName(String page) throws ProviderException(Code)(Java Doc) public String getFrontPage()(Code)(Java Doc) public String getGlobalRSSURL()(Code)(Java Doc) public GroupManager getGroupManager()(Code)(Java Doc) public String getHTML(WikiContext context, WikiPage page)(Code)(Java Doc) public String getHTML(String page)(Code)(Java Doc) public String getHTML(String pagename, int version)(Code)(Java Doc) public static synchronized WikiEngine getInstance(ServletConfig config) throws InternalWikiException(Code)(Java Doc) public static synchronized WikiEngine getInstance(ServletConfig config, Properties props)(Code)(Java Doc) public static synchronized WikiEngine getInstance(ServletContext context, Properties props) throws InternalWikiException(Code)(Java Doc) public String getInterWikiURL(String wikiName)(Code)(Java Doc) public InternationalizationManager getInternationalizationManager()(Code)(Java Doc) public WikiPage getPage(String pagereq)(Code)(Java Doc) public WikiPage getPage(String pagereq, int version)(Code)(Java Doc) public int getPageCount()(Code)(Java Doc) public PageManager getPageManager()(Code)(Java Doc) public PageRenamer getPageRenamer()(Code)(Java Doc) public PluginManager getPluginManager()(Code)(Java Doc) public String getPluginSearchPath()(Code)(Java Doc) public ProgressManager getProgressManager()(Code)(Java Doc) public String getPureText(String page, int version)(Code)(Java Doc) public String getPureText(WikiPage page)(Code)(Java Doc) public RSSGenerator getRSSGenerator()(Code)(Java Doc) public Collection getRecentChanges()(Code)(Java Doc) public String getRedirectURL(WikiContext context)(Code)(Java Doc) public ReferenceManager getReferenceManager()(Code)(Java Doc) public RenderingManager getRenderingManager()(Code)(Java Doc) public static String getRequiredProperty(Properties props, String key) throws NoRequiredPropertyException(Code)(Java Doc) public String getRootPath()(Code)(Java Doc) public SearchManager getSearchManager()(Code)(Java Doc) public ServletContext getServletContext()(Code)(Java Doc) public String getSpecialPageReference(String original)(Code)(Java Doc) public Date getStartTime()(Code)(Java Doc) public String getTemplateDir()(Code)(Java Doc) public TemplateManager getTemplateManager()(Code)(Java Doc) public String getText(String page)(Code)(Java Doc) public String getText(String page, int version)(Code)(Java Doc) public String getText(WikiContext context, WikiPage page)(Code)(Java Doc) public String getURL(String context, String pageName, String params, boolean absolute)(Code)(Java Doc) public URLConstructor getURLConstructor()(Code)(Java Doc) public UserManager getUserManager()(Code)(Java Doc) public String getVariable(WikiContext context, String name)(Code)(Java Doc) public VariableManager getVariableManager()(Code)(Java Doc) public List getVersionHistory(String page)(Code)(Java Doc) public String getViewURL(String pageName)(Code)(Java Doc) public Properties getWikiProperties()(Code)(Java Doc) public String getWorkDir()(Code)(Java Doc) public WorkflowManager getWorkflowManager()(Code)(Java Doc) public void initReferenceManager() throws WikiException(Code)(Java Doc) public boolean pageExists(String page)(Code)(Java Doc) public boolean pageExists(String page, int version) throws ProviderException(Code)(Java Doc) public boolean pageExists(WikiPage page) throws ProviderException(Code)(Java Doc) public Object removeAttribute(String key)(Code)(Java Doc) final public synchronized void removeWikiEventListener(WikiEventListener listener)(Code)(Java Doc) public String renamePage(WikiContext context, String renameFrom, String renameTo, boolean changeReferrers) throws WikiException(Code)(Java Doc) public String safeGetParameter(ServletRequest request, String name)(Code)(Java Doc) public String safeGetQueryString(HttpServletRequest request)(Code)(Java Doc) public void saveText(WikiContext context, String text) throws WikiException(Code)(Java Doc) protected Collection scanWikiLinks(WikiPage page, String pagedata)(Code)(Java Doc) public void setAttribute(String key, Object value)(Code)(Java Doc) protected void shutdown()(Code)(Java Doc) public String textToHTML(WikiContext context, String pagedata)(Code)(Java Doc) public String textToHTML(WikiContext context, String pagedata, StringTransmutator localLinkHook, StringTransmutator extLinkHook)(Code)(Java Doc) public String textToHTML(WikiContext context, String pagedata, StringTransmutator localLinkHook, StringTransmutator extLinkHook, StringTransmutator attLinkHook)(Code)(Java Doc) public void updateReferences(WikiPage page)(Code)(Java Doc)
|
|
|