use of org.apache.wiki.TestEngine in project jspwiki by apache.
the class WysiwygEditingRendererTest method setUp.
@Before
public void setUp() throws Exception {
Properties props = TestEngine.getTestProperties();
testEngine = new TestEngine(props);
testEngine.saveText("WysiwygEditingRendererTest", "test page");
testEngine.saveText("This Pagename Has Spaces", "This Pagename Has Spaces");
}
use of org.apache.wiki.TestEngine in project jspwiki by apache.
the class MassiveRepositoryTest method setUp.
@Before
public void setUp() throws Exception {
String files = props.getProperty(FileSystemProvider.PROP_PAGEDIR);
// Remove file
File f = new File(files);
TestEngine.deleteAll(f);
CacheManager.getInstance().removeAllCaches();
engine = new TestEngine(props);
}
use of org.apache.wiki.TestEngine in project jspwiki by apache.
the class InputValidatorTest method setUp.
@Before
public void setUp() throws Exception {
Properties props = TestEngine.getTestProperties();
testEngine = new TestEngine(props);
WikiContext context = new WikiContext(testEngine, new WikiPage(testEngine, "dummyPage"));
val = new InputValidator(TEST, context);
}
use of org.apache.wiki.TestEngine in project jspwiki by apache.
the class WikiCommandTest method setUp.
@Before
public void setUp() throws Exception {
Properties props = TestEngine.getTestProperties();
testEngine = new TestEngine(props);
wiki = testEngine.getApplicationName();
}
use of org.apache.wiki.TestEngine in project jspwiki by apache.
the class PluginBeanTest method testDoGet.
@Test
public void testDoGet() throws WikiException, NotCompliantMBeanException {
testEngine = new TestEngine(props);
WikiContext context = new WikiContext(testEngine, new WikiPage(testEngine, "TestPage01"));
PluginBean pb = new PluginBean(testEngine);
String expectedHtml = "<div>" + "<h4>Plugins</h4>" + "<table border=\"1\">" + "<tr><th>Name</th><th>Alias</th><th>Author</th><th>Notes</th></tr>" + "<tr><td>IfPlugin</td><td>If</td><td>Janne Jalkanen</td><td></td></tr>" + "<tr><td>Note</td><td></td><td>Janne Jalkanen</td><td></td></tr>" + "<tr><td>SamplePlugin</td><td>samplealias</td><td>Janne Jalkanen</td><td></td></tr>" + "<tr><td>SamplePlugin2</td><td>samplealias2</td><td>Janne Jalkanen</td><td></td></tr>" + "</table>" + "</div>";
Assert.assertEquals(expectedHtml, pb.doGet(context));
}
Aggregations