]> source.dussan.org Git - poi.git/commitdiff
try to fix tests
authorPJ Fanning <fanningpj@apache.org>
Wed, 31 Aug 2022 00:38:12 +0000 (00:38 +0000)
committerPJ Fanning <fanningpj@apache.org>
Wed, 31 Aug 2022 00:38:12 +0000 (00:38 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903784 13f79535-47bb-0310-9956-ffa450edef68

poi-ooxml/src/test/java/org/apache/poi/xwpf/TestXWPFBugs.java

index cad6cd12f809ba431ad7f64093badd202be8d0b2..4a82546a456fa879685c8b883893864936788ee9 100644 (file)
@@ -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());
             }
         }
     }