From: PJ Fanning Date: Wed, 31 Aug 2022 00:38:12 +0000 (+0000) Subject: try to fix tests X-Git-Tag: REL_5_2_3~14 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=18d7711806e356a94a91bd137beed6c716396491;p=poi.git try to fix tests git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903784 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/poi-ooxml/src/test/java/org/apache/poi/xwpf/TestXWPFBugs.java b/poi-ooxml/src/test/java/org/apache/poi/xwpf/TestXWPFBugs.java index cad6cd12f8..4a82546a45 100644 --- a/poi-ooxml/src/test/java/org/apache/poi/xwpf/TestXWPFBugs.java +++ b/poi-ooxml/src/test/java/org/apache/poi/xwpf/TestXWPFBugs.java @@ -176,8 +176,9 @@ class TestXWPFBugs { POIFSFileSystem poifs = new POIFSFileSystem(partStream) ) { Ole10Native ole = Ole10Native.createFromEmbeddedOleObject(poifs); - assertEquals("C:\\Users\\ross\\AppData\\Local\\Microsoft\\Windows\\INetCache\\Content.Word\\約翰的測試文件\uD83D\uDD96.msg", - ole.getFileName()); + String fn = "C:\\Users\\ross\\AppData\\Local\\Microsoft\\Windows\\INetCache\\Content.Word\\約翰的測試文件\uD83D\uDD96.msg"; + assertEquals(fn, ole.getFileName()); + assertEquals(fn, ole.getFileName2()); } } }