Return-Path: Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: (qmail 63051 invoked from network); 30 Mar 2009 16:45:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Mar 2009 16:45:38 -0000 Received: (qmail 71648 invoked by uid 500); 30 Mar 2009 16:45:37 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 71565 invoked by uid 500); 30 Mar 2009 16:45:37 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 71556 invoked by uid 99); 30 Mar 2009 16:45:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Mar 2009 16:45:37 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Mar 2009 16:45:35 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id C81CB23889D0; Mon, 30 Mar 2009 16:45:14 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@commons.apache.org From: sebb@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090330164514.C81CB23889D0@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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;