commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r760039 - /commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/tar/TarArchiveEntryTest.java
Date Mon, 30 Mar 2009 16:45:14 GMT
Author: sebb
Date: Mon Mar 30 16:45:13 2009
New Revision: 760039

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

Modified:
    commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/tar/TarArchiveEntryTest.java

Modified: commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/tar/TarArchiveEntryTest.java
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/tar/TarArchiveEntryTest.java?rev=760039&r1=760038&r2=760039&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/tar/TarArchiveEntryTest.java
(original)
+++ commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/tar/TarArchiveEntryTest.java
Mon Mar 30 16:45:13 2009
@@ -50,25 +50,25 @@
         try {
             tout = new TarArchiveOutputStream(new FileOutputStream(f));
             TarArchiveEntry t = new TarArchiveEntry(new File(ROOT));
-            tout.putNextEntry(t);
-            tout.closeEntry();
+            tout.putArchiveEntry(t);
+            tout.closeArchiveEntry();
             t = new TarArchiveEntry(new File(new File(ROOT), "foo.txt"));
             t.setSize(6);
-            tout.putNextEntry(t);
+            tout.putArchiveEntry(t);
             tout.write(new byte[] {'h', 'e', 'l', 'l', 'o', ' '});
-            tout.closeEntry();
+            tout.closeArchiveEntry();
             t = new TarArchiveEntry(new File(new File(ROOT), "bar.txt")
                                     .getAbsolutePath());
             t.setSize(5);
-            tout.putNextEntry(t);
+            tout.putArchiveEntry(t);
             tout.write(new byte[] {'w', 'o', 'r', 'l', 'd'});
-            tout.closeEntry();
+            tout.closeArchiveEntry();
             t = new TarArchiveEntry("dummy");
             t.setName(new File(new File(ROOT), "baz.txt").getAbsolutePath());
             t.setSize(1);
-            tout.putNextEntry(t);
+            tout.putArchiveEntry(t);
             tout.write(new byte[] {'!'});
-            tout.closeEntry();
+            tout.closeArchiveEntry();
             tout.close();
             tout = null;
 



Mime
View raw message