Return-Path: X-Original-To: apmail-commons-commits-archive@minotaur.apache.org Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A9276E7D5 for ; Thu, 27 Dec 2012 20:50:43 +0000 (UTC) Received: (qmail 89097 invoked by uid 500); 27 Dec 2012 20:50:39 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 88993 invoked by uid 500); 27 Dec 2012 20:50:39 -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 88931 invoked by uid 99); 27 Dec 2012 20:50:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Dec 2012 20:50:39 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.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; Thu, 27 Dec 2012 20:50:38 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 3009923889DE; Thu, 27 Dec 2012 20:50:18 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1426312 - /commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/tar/TarArchiveOutputStreamTest.java Date: Thu, 27 Dec 2012 20:50:18 -0000 To: commits@commons.apache.org From: bodewig@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20121227205018.3009923889DE@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: bodewig Date: Thu Dec 27 20:50:17 2012 New Revision: 1426312 URL: http://svn.apache.org/viewvc?rev=1426312&view=rev Log: COMPRESS-200 the test actually fails if encoding is specified explicitly Modified: commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/tar/TarArchiveOutputStreamTest.java Modified: commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/tar/TarArchiveOutputStreamTest.java URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/tar/TarArchiveOutputStreamTest.java?rev=1426312&r1=1426311&r2=1426312&view=diff ============================================================================== --- commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/tar/TarArchiveOutputStreamTest.java (original) +++ commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/tar/TarArchiveOutputStreamTest.java Thu Dec 27 20:50:17 2012 @@ -358,18 +358,18 @@ public class TarArchiveOutputStreamTest TarArchiveEntry t = new TarArchiveEntry(n); t.setSize(10 * 1024); ByteArrayOutputStream bos = new ByteArrayOutputStream(); - TarArchiveOutputStream tos = new TarArchiveOutputStream(bos); + TarArchiveOutputStream tos = new TarArchiveOutputStream(bos, "ASCII"); tos.setLongFileMode(mode); tos.putArchiveEntry(t); tos.write(new byte[10 * 1024]); tos.closeArchiveEntry(); + tos.close(); byte[] data = bos.toByteArray(); TarArchiveInputStream tin = new TarArchiveInputStream(new ByteArrayInputStream(data)); TarArchiveEntry e = tin.getNextTarEntry(); assertEquals(n, e.getName()); tin.close(); - tos.close(); } }