Skip to content

Commit 4507f3c

Browse files
author
Nicola Ken Barozzi
committed
Make testcases compile.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/io/trunk@140308 13f79535-47bb-0310-9956-ffa450edef68
1 parent 8e39fe9 commit 4507f3c

10 files changed

Lines changed: 16 additions & 39 deletions

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
2-
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//io/src/test/org/apache/commons/io/DemuxTestCase.java,v 1.1 2002/07/08 22:19:10 nicolaken Exp $
3-
* $Revision: 1.1 $
4-
* $Date: 2002/07/08 22:19:10 $
2+
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//io/src/test/org/apache/commons/io/DemuxTestCase.java,v 1.2 2002/07/09 15:12:23 nicolaken Exp $
3+
* $Revision: 1.2 $
4+
* $Date: 2002/07/09 15:12:23 $
55
*
66
* ====================================================================
77
*
@@ -70,8 +70,6 @@
7070
import java.util.Iterator;
7171
import java.util.Random;
7272
import junit.framework.TestCase;
73-
import org.apache.avalon.excalibur.io.DemuxInputStream;
74-
import org.apache.avalon.excalibur.io.DemuxOutputStream;
7573

7674
/**
7775
* Basic unit tests for the multiplexing streams.
@@ -284,3 +282,4 @@ public void run()
284282
}
285283
}
286284
}
285+

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
2-
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//io/src/test/org/apache/commons/io/Attic/FileUtilTestCase.java,v 1.1 2002/07/08 22:19:10 nicolaken Exp $
3-
* $Revision: 1.1 $
4-
* $Date: 2002/07/08 22:19:10 $
2+
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//io/src/test/org/apache/commons/io/Attic/FileUtilTestCase.java,v 1.2 2002/07/09 15:12:23 nicolaken Exp $
3+
* $Revision: 1.2 $
4+
* $Date: 2002/07/09 15:12:23 $
55
*
66
* ====================================================================
77
*
@@ -68,7 +68,6 @@
6868
import junit.framework.Test;
6969
import junit.framework.TestCase;
7070
import junit.framework.TestSuite;
71-
import org.apache.avalon.excalibur.io.FileUtil;
7271

7372
/**
7473
* This is used to test FileUtil for correctness.
@@ -241,3 +240,4 @@ public void testNormalize()
241240
}
242241
}
243242
}
243+

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
2-
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//io/src/test/org/apache/commons/io/Attic/IOUtilTestCase.java,v 1.1 2002/07/08 22:19:10 nicolaken Exp $
3-
* $Revision: 1.1 $
4-
* $Date: 2002/07/08 22:19:10 $
2+
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//io/src/test/org/apache/commons/io/Attic/IOUtilTestCase.java,v 1.2 2002/07/09 15:12:23 nicolaken Exp $
3+
* $Revision: 1.2 $
4+
* $Date: 2002/07/09 15:12:23 $
55
*
66
* ====================================================================
77
*
@@ -75,8 +75,6 @@
7575
import java.util.Arrays;
7676
import junit.framework.AssertionFailedError;
7777
import junit.framework.TestCase;
78-
import org.apache.avalon.excalibur.io.FileUtil;
79-
import org.apache.avalon.excalibur.io.IOUtil;
8078

8179
// Note: jdk1.2 dependency
8280

@@ -482,3 +480,4 @@ private void deleteFile( final File file )
482480
//assertTrue( "File would not delete", (file.delete() || ( !file.exists() )));
483481
}
484482
}
483+

src/test/org/apache/commons/io/compress/bzip2/BzipTestCase.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* version 1.1, a copy of which has been included with this distribution in
66
* the LICENSE.txt file.
77
*/
8-
package org.apache.excalibur.bzip2.test;
8+
package org.apache.commons.io.compress.bzip2;
99

1010
import java.io.BufferedInputStream;
1111
import java.io.File;
@@ -15,15 +15,13 @@
1515
import java.io.InputStream;
1616
import java.io.OutputStream;
1717
import junit.framework.TestCase;
18-
import org.apache.excalibur.bzip2.CBZip2InputStream;
19-
import org.apache.excalibur.bzip2.CBZip2OutputStream;
2018

2119
/**
2220
* A test the stress tested the BZip implementation to verify
2321
* that it behaves correctly.
2422
*
2523
* @author <a href="mailto:peter@apache.org">Peter Donald</a>
26-
* @version $Revision: 1.1 $ $Date: 2002/07/08 22:19:09 $
24+
* @version $Revision: 1.2 $ $Date: 2002/07/09 15:12:23 $
2725
*/
2826
public class BzipTestCase
2927
extends TestCase

src/test/org/apache/commons/io/compress/tar/TarTestCase.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* version 1.1, a copy of which has been included with this distribution in
66
* the LICENSE.txt file.
77
*/
8-
package org.apache.commons.compress.tar;
8+
package org.apache.commons.io.compress.tar;
99

1010
import java.io.BufferedInputStream;
1111
import java.io.File;
@@ -15,16 +15,13 @@
1515
import java.io.InputStream;
1616
import java.io.OutputStream;
1717
import junit.framework.TestCase;
18-
import org.apache.excalibur.tar.TarEntry;
19-
import org.apache.excalibur.tar.TarInputStream;
20-
import org.apache.excalibur.tar.TarOutputStream;
2118

2219
/**
2320
* Test case for all tar resources.
2421
*
2522
* @todo Find V7 tar and do tests against it
2623
* @author <a href="mailto:peter@apache.org">Peter Donald</a>
27-
* @version $Revision: 1.1 $ $Date: 2002/07/08 22:19:10 $
24+
* @version $Revision: 1.2 $ $Date: 2002/07/09 15:12:23 $
2825
*/
2926
public final class TarTestCase
3027
extends TestCase

src/test/org/apache/commons/io/compress/zip/AsiExtraFieldTestCase.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99

1010
import java.util.zip.ZipException;
1111
import junit.framework.TestCase;
12-
import org.apache.excalibur.zip.AsiExtraField;
13-
import org.apache.excalibur.zip.UnixStat;
1412

1513
/**
1614
* JUnit testcases AsiExtraField.

src/test/org/apache/commons/io/compress/zip/ExtraFieldUtilsTestCase.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,6 @@
88
package org.apache.commons.io.compress.zip;
99

1010
import junit.framework.TestCase;
11-
import org.apache.excalibur.zip.AsiExtraField;
12-
import org.apache.excalibur.zip.ExtraFieldUtils;
13-
import org.apache.excalibur.zip.UnixStat;
14-
import org.apache.excalibur.zip.UnrecognizedExtraField;
15-
import org.apache.excalibur.zip.ZipExtraField;
16-
import org.apache.excalibur.zip.ZipShort;
17-
1811
/**
1912
* JUnit testcases ExtraFieldUtils.
2013
*

src/test/org/apache/commons/io/compress/zip/ZipEntryTestCase.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@
99

1010
import java.util.NoSuchElementException;
1111
import junit.framework.TestCase;
12-
import org.apache.excalibur.zip.AsiExtraField;
13-
import org.apache.excalibur.zip.UnrecognizedExtraField;
14-
import org.apache.excalibur.zip.ZipEntry;
15-
import org.apache.excalibur.zip.ZipExtraField;
16-
import org.apache.excalibur.zip.ZipShort;
1712

1813
/**
1914
* JUnit testcases ZipEntry.

src/test/org/apache/commons/io/compress/zip/ZipLongTestCase.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
package org.apache.commons.io.compress.zip;
99

1010
import junit.framework.TestCase;
11-
import org.apache.excalibur.zip.ZipLong;
1211

1312
/**
1413
* JUnit 3 testcases for org.apache.tools.zip.ZipLong.

src/test/org/apache/commons/io/compress/zip/ZipShortTestCase.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
package org.apache.commons.io.compress.zip;
99

1010
import junit.framework.TestCase;
11-
import org.apache.excalibur.zip.ZipShort;
1211

1312
/**
1413
* JUnit 3 testcases for org.apache.tools.zip.ZipShort.

0 commit comments

Comments
 (0)