KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > openedit > AllTests


1 /*
2  * Created on Mar 17, 2004
3  *
4  */

5
6 package com.openedit;
7 import junit.framework.Test;
8 import junit.framework.TestSuite;
9 import junit.textui.TestRunner;
10
11
12 /**
13  * @author dbrown
14  *
15  */

16 public class AllTests
17 {
18     public static void main(String JavaDoc[] args) throws Exception JavaDoc
19     {
20         TestRunner.run(suite());
21     }
22     public static Test suite() throws Exception JavaDoc
23     {
24         String JavaDoc rootPath = System.getProperty( "oe.root.path" );
25         if ( rootPath == null )
26         {
27             System.setProperty("oe.root.path", "resources/test");
28         }
29         
30         TestSuite suite = new TestSuite("All Open Edit Tests");
31         suite.addTest( com.openedit.generators.AllTests.suite() );
32         suite.addTest( com.openedit.page.AllTests.suite() );
33         suite.addTest( com.openedit.page.finder.AllTests.suite() );
34         suite.addTest( com.openedit.page.manage.AllTests.suite() );
35         suite.addTest( com.openedit.servlet.AllTests.suite() );
36         suite.addTest( com.openedit.util.AllTests.suite() );
37         suite.addTest( com.openedit.web.AllTests.suite() );
38         suite.addTest( com.openedit.users.filesystem.AllTests.suite() );
39         suite.addTest( org.openedit.repository.AllTests.suite() );
40         suite.addTest( com.openedit.modules.AllTests.suite( ) );
41
42         return suite;
43     }
44 }
45
Popular Tags