Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 0E2F1200C82 for ; Sat, 13 May 2017 00:13:33 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0CB38160BC8; Fri, 12 May 2017 22:13:33 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 53059160BB8 for ; Sat, 13 May 2017 00:13:32 +0200 (CEST) Received: (qmail 17507 invoked by uid 500); 12 May 2017 22:13:31 -0000 Mailing-List: contact commits-help@poi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@poi.apache.org Delivered-To: mailing list commits@poi.apache.org Received: (qmail 17498 invoked by uid 99); 12 May 2017 22:13:31 -0000 Received: from Unknown (HELO svn01-us-west.apache.org) (209.188.14.144) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 May 2017 22:13:31 +0000 Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id E47953A04C1 for ; Fri, 12 May 2017 22:13:30 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1795026 - /poi/trunk/src/integrationtest/org/apache/poi/stress/HPSFFileHandler.java Date: Fri, 12 May 2017 22:13:30 -0000 To: commits@poi.apache.org From: gwoolsey@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20170512221330.E47953A04C1@svn01-us-west.apache.org> archived-at: Fri, 12 May 2017 22:13:33 -0000 Author: gwoolsey Date: Fri May 12 22:13:30 2017 New Revision: 1795026 URL: http://svn.apache.org/viewvc?rev=1795026&view=rev Log: tweak to use platform line separator so tests can pass on Windows as well as Linux. Modified: poi/trunk/src/integrationtest/org/apache/poi/stress/HPSFFileHandler.java Modified: poi/trunk/src/integrationtest/org/apache/poi/stress/HPSFFileHandler.java URL: http://svn.apache.org/viewvc/poi/trunk/src/integrationtest/org/apache/poi/stress/HPSFFileHandler.java?rev=1795026&r1=1795025&r2=1795026&view=diff ============================================================================== --- poi/trunk/src/integrationtest/org/apache/poi/stress/HPSFFileHandler.java (original) +++ poi/trunk/src/integrationtest/org/apache/poi/stress/HPSFFileHandler.java Fri May 12 22:13:30 2017 @@ -44,6 +44,8 @@ import org.junit.Assume; import org.junit.Test; public class HPSFFileHandler extends POIFSFileHandler { + private static final String NL = System.getProperty("line.separator"); + private static File copyOutput = null; static final Set EXCLUDES_HANDLE_ADD = unmodifiableHashSet( @@ -108,7 +110,7 @@ public class HPSFFileHandler extends POI try { System.setOut(psNew); CopyCompare.main(new String[]{file.getAbsolutePath(), copyOutput.getAbsolutePath()}); - assertEquals("Equal\n", new String(bos.toByteArray(), Charset.forName("UTF-8"))); + assertEquals("Equal" + NL, new String(bos.toByteArray(), Charset.forName("UTF-8"))); } finally { System.setOut(ps); } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org For additional commands, e-mail: commits-help@poi.apache.org