01: package com.ecyrd.jspwiki;
02:
03: import java.util.Properties;
04: import org.apache.log4j.PropertyConfigurator;
05: import java.io.IOException;
06: import java.io.InputStream;
07:
08: import junit.framework.*;
09:
10: public class AllTests extends TestCase {
11: //
12: // Ensure everything runs properly and that we can locate all necessary
13: // thingies.
14: //
15: static {
16: Properties props = new Properties();
17: try {
18: InputStream pin = TestEngine.findTestProperties();
19: if (pin == null) {
20: fail("No property file found!");
21: }
22: props.load(pin);
23: PropertyConfigurator.configure(props);
24: } catch (IOException e) {
25: }
26: }
27:
28: public AllTests(String s) {
29: super (s);
30: }
31:
32: public static Test suite() {
33: TestSuite suite = new TestSuite("JSPWiki Unit Tests");
34:
35: suite.addTest(FileUtilTest.suite());
36: suite.addTest(PageManagerTest.suite());
37: suite.addTest(PageRenamerTest.suite());
38: suite.addTest(PropertyReaderTest.suite());
39: suite.addTest(ReferenceManagerTest.suite());
40: suite.addTest(ReleaseTest.suite());
41: suite.addTest(TextUtilTest.suite());
42: suite.addTest(VariableManagerTest.suite());
43: // This is obsolete and not maintained anymore
44: // suite.addTest( TranslatorReaderTest.suite() );
45: suite.addTest(WikiSessionTest.suite());
46: suite.addTest(WikiEngineTest.suite());
47: suite.addTest(com.ecyrd.jspwiki.attachment.AllTests.suite());
48: suite.addTest(com.ecyrd.jspwiki.auth.AllTests.suite());
49: suite.addTest(com.ecyrd.jspwiki.dav.AllTests.suite());
50: suite.addTest(com.ecyrd.jspwiki.diff.AllTests.suite());
51: suite.addTest(com.ecyrd.jspwiki.filters.AllTests.suite());
52: suite.addTest(com.ecyrd.jspwiki.htmltowiki.AllTests.suite());
53: suite.addTest(com.ecyrd.jspwiki.parser.AllTests.suite());
54: suite.addTest(com.ecyrd.jspwiki.plugin.AllTests.suite());
55: suite.addTest(com.ecyrd.jspwiki.providers.AllTests.suite());
56: suite.addTest(com.ecyrd.jspwiki.render.AllTests.suite());
57: suite.addTest(com.ecyrd.jspwiki.rss.AllTests.suite());
58: suite.addTest(com.ecyrd.jspwiki.search.AllTests.suite());
59: suite.addTest(com.ecyrd.jspwiki.ui.AllTests.suite());
60: suite.addTest(com.ecyrd.jspwiki.url.AllTests.suite());
61: suite.addTest(com.ecyrd.jspwiki.util.AllTests.suite());
62: // These are not runnable without a running tomcat
63: //suite.addTest( com.ecyrd.jspwiki.web.AllTests.suite() );
64: suite.addTest(com.ecyrd.jspwiki.workflow.AllTests.suite());
65: suite.addTest(com.ecyrd.jspwiki.xmlrpc.AllTests.suite());
66:
67: return suite;
68: }
69: }
|