Java Doc for TestEngine.java in  » Wiki-Engine » JSPWiki » com » ecyrd » jspwiki » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Wiki Engine » JSPWiki » com.ecyrd.jspwiki 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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  Loggerlog
    

Constructor Summary
public  TestEngine(Properties props)
    

Method Summary
public  voidaddAttachment(String pageName, String attachmentName, byte[] data)
     Adds an attachment to a page for testing purposes.
public  WikiSessionadminSession()
     Creates WikiSession with the privileges of the administrative user.
public static  voiddeleteAll(File file)
     Deletes all files under this directory, and does them recursively.
public  voiddeleteAttachments(String page)
     Deletes all attachments related to the given page.
public static  voiddeleteTestPage(String name)
     Removes a page, but not any auxiliary information.
public static  voidemptyWorkDir()
    
final public static  InputStreamfindTestProperties()
    
final public static  InputStreamfindTestProperties(String properties)
    
public  WikiSessionguestSession()
     Creates guest WikiSession with the no privileges.
public  WikiSessionjanneSession()
     Creates WikiSession with the privileges of the Janne.
public  FilemakeAttachmentFile()
     Makes a temporary file with some content, and returns a handle to it.
protected static  StringmangleName(String pagename)
    
public  voidsaveText(String pageName, String content)
     Convenience method that saves a wiki page by constructing a fake WikiContext and HttpServletRequest.
public  voidsaveTextAsJanne(String pageName, String content)
    
public static  voidtrace()
    

Field Detail
log
static Logger log(Code)




Constructor Detail
TestEngine
public TestEngine(Properties props) throws WikiException(Code)




Method Detail
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)



findTestProperties
final public static InputStream findTestProperties()(Code)



findTestProperties
final public static InputStream findTestProperties(String properties)(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.



mangleName
protected static String mangleName(String pagename) throws IOException(Code)
Copied from FileSystemProvider



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 -



saveTextAsJanne
public void saveTextAsJanne(String pageName, String content) throws WikiException(Code)



trace
public static void trace()(Code)



Fields inherited from com.ecyrd.jspwiki.WikiEngine
final public static String PREFS_COOKIE_NAME(Code)(Java Doc)
final public static String PROP_ACL_MANAGER_IMPL(Code)(Java Doc)
final public static String PROP_APPNAME(Code)(Java Doc)
final public static String PROP_BASEURL(Code)(Java Doc)
final public static String PROP_BEAUTIFYTITLE(Code)(Java Doc)
final public static String PROP_ENCODING(Code)(Java Doc)
final public static String PROP_FRONTPAGE(Code)(Java Doc)
final public static String PROP_INTERWIKIREF(Code)(Java Doc)
final public static String PROP_MATCHPLURALS(Code)(Java Doc)
final public static String PROP_REFSTYLE(Code)(Java Doc)
final public static String PROP_RUNFILTERS(Code)(Java Doc)
final public static String PROP_STOREUSERNAME(Code)(Java Doc)
final public static String PROP_TEMPLATEDIR(Code)(Java Doc)
final public static String PROP_URLCONSTRUCTOR(Code)(Java Doc)
final public static String PROP_WORKDIR(Code)(Java Doc)

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)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.