diff options
author | PJ Fanning <fanningpj@apache.org> | 2021-11-30 10:11:41 +0000 |
---|---|---|
committer | PJ Fanning <fanningpj@apache.org> | 2021-11-30 10:11:41 +0000 |
commit | 74997afe6a25781d6e06173e9250d948d9434c88 (patch) | |
tree | cbe4b635544c386cb30c9afc8cdc4387dd3f7e89 /poi-examples/src/test/java | |
parent | 0bcaa5789e1b344262f17622b85edb1ee7222fd9 (diff) | |
download | poi-74997afe6a25781d6e06173e9250d948d9434c88.tar.gz poi-74997afe6a25781d6e06173e9250d948d9434c88.zip |
update test assertion
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1895423 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi-examples/src/test/java')
-rw-r--r-- | poi-examples/src/test/java/org/apache/poi/integration/TestXLSX2CSV.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/poi-examples/src/test/java/org/apache/poi/integration/TestXLSX2CSV.java b/poi-examples/src/test/java/org/apache/poi/integration/TestXLSX2CSV.java index 56a7f5a397..4d1a95444d 100644 --- a/poi-examples/src/test/java/org/apache/poi/integration/TestXLSX2CSV.java +++ b/poi-examples/src/test/java/org/apache/poi/integration/TestXLSX2CSV.java @@ -87,7 +87,7 @@ public class TestXLSX2CSV { } String errorOutput = errorBytes.toString(StandardCharsets.UTF_8); - assertEquals(0, errorOutput.length()); + assertEquals("", errorOutput); String output = outputBytes.toString(StandardCharsets.UTF_8); assertTrue(output.contains("\"Lorem\",111"), "Had: " + output); @@ -106,7 +106,7 @@ public class TestXLSX2CSV { } String errorOutput = errorBytes.toString(StandardCharsets.UTF_8); - assertEquals(0, errorOutput.length()); + assertEquals("", errorOutput); String output = outputBytes.toString(StandardCharsets.UTF_8); assertTrue(output.contains("\"Lorem\",111,,,"), "Had: " + output); |