KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > commons > io > IOTestSuite


1 /*
2  * Copyright 1999-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16
17 package org.apache.commons.io;
18
19 import org.apache.commons.io.filefilter.FileFilterTestCase;
20
21 import junit.framework.Test;
22 import junit.framework.TestSuite;
23 import junit.textui.TestRunner;
24
25 /**
26  * A basic test suite that tests all the IO package.
27  *
28  * @author Matthew Hawthorne
29  * @see org.apache.commons.io
30  */

31 public class IOTestSuite
32 {
33     
34     public static void main(String JavaDoc[] args) {
35         TestRunner.run(suite());
36     }
37     
38     public static Test suite()
39     {
40         TestSuite suite = new TestSuite( "IO Utilities" );
41         suite.addTest( new TestSuite( CopyUtilsTest.class ) );
42         suite.addTest( new TestSuite( IOUtilsTestCase.class ) );
43         suite.addTest( new TestSuite( FileUtilsTestCase.class ) );
44         suite.addTest( new TestSuite( FileFilterTestCase.class ) );
45         suite.addTest( new TestSuite( DemuxTestCase.class ) );
46         suite.addTest( new TestSuite( HexDumpTest.class ) );
47         return suite;
48     }
49 }
50
Popular Tags