KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > avalon > excalibur > test > ExcaliburTestSuite


1 package org.apache.avalon.excalibur.test;
2
3 import junit.framework.Test;
4 import junit.framework.TestCase;
5 import junit.framework.TestSuite;
6 import junit.framework.TestResult;
7 import junit.swingui.TestRunner;
8
9 public class ExcaliburTestSuite
10     extends TestCase
11 {
12     private Test m_excaliburTest = ExcaliburTestSuite.suite();
13
14     public ExcaliburTestSuite( final String JavaDoc name )
15     {
16         super( name );
17     }
18
19     public int countTestCases()
20     {
21         return m_excaliburTest.countTestCases();
22     }
23
24     public void run( final TestResult result )
25     {
26         m_excaliburTest.run( result );
27     }
28
29     public static Test suite()
30     {
31         final TestSuite suite = new TestSuite();
32         suite.addTestSuite( org.apache.avalon.excalibur.cli.test.ClutilTestCase.class );
33         suite.addTestSuite( org.apache.avalon.excalibur.collections.test.BinaryHeapTestCase.class );
34         suite.addTestSuite( org.apache.avalon.excalibur.datasource.test.DataSourceTestCase.class );
35         suite.addTestSuite( org.apache.avalon.excalibur.io.test.FileUtilTestCase.class );
36         suite.addTestSuite( org.apache.avalon.excalibur.io.test.IOUtilTestCase.class );
37         suite.addTestSuite( org.apache.avalon.excalibur.property.test.PropertyUtilTestCase.class );
38         //suite.addTestSuite( org.apache.avalon.excalibur.pool.test.PoolProfile.class );
39

40         return suite;
41     }
42
43     public static void main( final String JavaDoc[] args )
44     {
45         final String JavaDoc[] testCaseName = { ExcaliburTestSuite.class.getName() };
46         TestRunner.main( testCaseName );
47     }
48 }
49
Popular Tags