Skip to content

Commit 733da26

Browse files
author
Stephen Colebourne
committed
Rename IOTestSuite to PackageTestSuite, include all tests
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/io/trunk@140624 13f79535-47bb-0310-9956-ffa450edef68
1 parent 639e10e commit 733da26

4 files changed

Lines changed: 58 additions & 51 deletions

File tree

build.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@
108108
</include>
109109
<exclude name="**/*AbstractTestCase*">
110110
</exclude>
111+
<exclude name="**/PackageTestSuite*">
112+
</exclude>
111113
<exclude name="**/testtools/**">
112114
</exclude>
113115
</fileset>

project.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@
184184
</includes>
185185
<excludes>
186186
<exclude>**/*AbstractTestCase*</exclude>
187+
<exclude>**/PackageTestSuite*</exclude>
187188
<exclude>**/testtools/**</exclude>
188189
</excludes>
189190
</unitTest>

src/test/org/apache/commons/io/IOTestSuite.java

Lines changed: 0 additions & 51 deletions
This file was deleted.
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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

Comments
 (0)