|
| 1 | +/* |
| 2 | + * Copyright 2003-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 | + * @author Stephen Colebourne |
| 30 | + * @see org.apache.commons.io |
| 31 | + */ |
| 32 | +public class PackageTestSuite { |
| 33 | + |
| 34 | + public static void main(String[] args) { |
| 35 | + TestRunner.run(suite()); |
| 36 | + } |
| 37 | + |
| 38 | + public static Test suite() { |
| 39 | + TestSuite suite = new TestSuite("IO Utilities"); |
| 40 | + suite.addTest(new TestSuite(CopyUtilsTest.class)); |
| 41 | + suite.addTest(new TestSuite(DemuxTestCase.class)); |
| 42 | + suite.addTest(new TestSuite(EndianUtilsTest.class)); |
| 43 | + suite.addTest(new TestSuite(FilenameUtilsTestCase.class)); |
| 44 | + suite.addTest(new TestSuite(FileUtilsFileNewerTestCase.class)); |
| 45 | + suite.addTest(new TestSuite(FileUtilsListFilesTestCase.class)); |
| 46 | + suite.addTest(new TestSuite(FileUtilsTestCase.class)); |
| 47 | + suite.addTest(new TestSuite(FileFilterTestCase.class)); |
| 48 | + suite.addTest(new TestSuite(HexDumpTest.class)); |
| 49 | + suite.addTest(new TestSuite(IOUtilsCopyTestCase.class)); |
| 50 | + suite.addTest(new TestSuite(IOUtilsTestCase.class)); |
| 51 | + suite.addTest(new TestSuite(IOUtilsWriteTestCase.class)); |
| 52 | + suite.addTest(new TestSuite(WildcardUtilsTest.class)); |
| 53 | + return suite; |
| 54 | + } |
| 55 | +} |
0 commit comments