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<String> 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: [email protected]
For additional commands, e-mail: [email protected]