commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r760059 - in /commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers: jar/JarArchiveOutputStreamTest.java zip/UTF8ZipFilesTest.java
Date Mon, 30 Mar 2009 17:27:38 GMT
Author: sebb
Date: Mon Mar 30 17:27:38 2009
New Revision: 760059

URL: http://svn.apache.org/viewvc?rev=760059&view=rev
Log:
Use generic methods

Modified:
    commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/jar/JarArchiveOutputStreamTest.java
    commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/zip/UTF8ZipFilesTest.java

Modified: commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/jar/JarArchiveOutputStreamTest.java
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/jar/JarArchiveOutputStreamTest.java?rev=760059&r1=760058&r2=760059&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/jar/JarArchiveOutputStreamTest.java
(original)
+++ commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/jar/JarArchiveOutputStreamTest.java
Mon Mar 30 17:27:38 2009
@@ -38,9 +38,9 @@
 
             out = new JarArchiveOutputStream(new FileOutputStream(testArchive));
             out.putArchiveEntry(new ZipArchiveEntry("foo/"));
-            out.closeEntry();
+            out.closeArchiveEntry();
             out.putArchiveEntry(new ZipArchiveEntry("bar/"));
-            out.closeEntry();
+            out.closeArchiveEntry();
             out.close();
             out = null;
 

Modified: commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/zip/UTF8ZipFilesTest.java
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/zip/UTF8ZipFilesTest.java?rev=760059&r1=760058&r2=760059&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/zip/UTF8ZipFilesTest.java
(original)
+++ commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/zip/UTF8ZipFilesTest.java
Mon Mar 30 17:27:38 2009
@@ -239,7 +239,7 @@
 
             zos.putArchiveEntry(ze);
             zos.write("Hello, world!".getBytes("US-ASCII"));
-            zos.closeEntry();
+            zos.closeArchiveEntry();
 
             ze = new ZipArchiveEntry(EURO_FOR_DOLLAR_TXT);
             if (withExplicitUnicodeExtra
@@ -255,7 +255,7 @@
 
             zos.putArchiveEntry(ze);
             zos.write("Give me your money!".getBytes("US-ASCII"));
-            zos.closeEntry();
+            zos.closeArchiveEntry();
 
             ze = new ZipArchiveEntry(ASCII_TXT);
 
@@ -272,7 +272,7 @@
 
             zos.putArchiveEntry(ze);
             zos.write("ascii".getBytes("US-ASCII"));
-            zos.closeEntry();
+            zos.closeArchiveEntry();
         } finally {
             if (zos != null) {
                 try {



Mime
View raw message