1 /*
2 * RunTest.java Sept 01, 2002
3 *
4 * Sample JUnit test using Loader for creating test database and
5 * inserting data into it.
6 *
7 */
8
9 package test.org.webdocwf.util.loader;
10
11 import junit.framework.*;
12 import java.io.*;
13 import java.sql.*;
14
15 /***
16 * RunTest is the main class for starting tests of the Octopus application
17 * @author Radoslav Dutina
18 * @version 1.0
19 */
20 public class RunTests
21 {
22
23 /***
24 * This method starts test
25 * @return TestSuite object
26 */
27 public static Test suite()
28 {
29 TestSuite suite= new TestSuite();
30 suite.addTestSuite(LoaderTest.class);
31 suite.addTestSuite(LoaderTest2.class);
32 suite.addTestSuite(LoaderTest3.class);
33 return suite;
34 }
35
36 /***
37 * This is the main method of the RunTest class
38 * @param args is the input parameters
39 */
40 public static void main(String[] args)
41 {
42 // set the file location as a property so that it is easy to pass around
43 System.setProperty(LoaderTest.DATABASE_LOCATION_PROPERTY,args[0]);
44
45
46 // kick off the tests. Note call main() instead of run() so that error codes
47 // are returned so that they can be trapped by ant
48 junit.textui.TestRunner.main(new String[]{"test.org.webdocwf.util.loader.RunTests"});
49 }
50 }
This page was automatically generated by Maven