1 5 6 package com.openedit; 7 import junit.framework.Test; 8 import junit.framework.TestSuite; 9 import junit.textui.TestRunner; 10 11 12 16 public class AllTests 17 { 18 public static void main(String [] args) throws Exception 19 { 20 TestRunner.run(suite()); 21 } 22 public static Test suite() throws Exception 23 { 24 String 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 |