From 95702c9d7d6bc0bc4fb7bbced332806c09890a04 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Thu, 16 Jul 2020 07:34:51 +0000 Subject: [PATCH] fix some tests git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1879928 13f79535-47bb-0310-9956-ffa450edef68 --- .../xssf/eventusermodel/TestReadOnlySharedStringsTable.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ooxml/testcases/org/apache/poi/xssf/eventusermodel/TestReadOnlySharedStringsTable.java b/src/ooxml/testcases/org/apache/poi/xssf/eventusermodel/TestReadOnlySharedStringsTable.java index 05f0295658..a0be2dbf4a 100644 --- a/src/ooxml/testcases/org/apache/poi/xssf/eventusermodel/TestReadOnlySharedStringsTable.java +++ b/src/ooxml/testcases/org/apache/poi/xssf/eventusermodel/TestReadOnlySharedStringsTable.java @@ -65,21 +65,20 @@ public final class TestReadOnlySharedStringsTable { //51519 @Test - @Ignore("follow up fix") public void testPhoneticRuns() throws Exception { try (OPCPackage pkg = OPCPackage.open(_ssTests.openResourceAsStream("51519.xlsx"))) { List < PackagePart > parts = pkg.getPartsByName(Pattern.compile("/xl/sharedStrings.xml")); assertEquals(1, parts.size()); ReadOnlySharedStringsTable rtbl = new ReadOnlySharedStringsTable(parts.get(0), true); - assertEquals(49, rtbl.getCount()); + assertEquals(49, rtbl.getUniqueCount()); assertEquals("\u30B3\u30E1\u30F3\u30C8", rtbl.getItemAt(0).getString()); assertEquals("\u65E5\u672C\u30AA\u30E9\u30AF\u30EB \u30CB\u30DB\u30F3", rtbl.getItemAt(3).getString()); //now do not include phonetic runs rtbl = new ReadOnlySharedStringsTable(parts.get(0),false); - assertEquals(49, rtbl.getCount()); + assertEquals(49, rtbl.getUniqueCount()); assertEquals("\u30B3\u30E1\u30F3\u30C8", rtbl.getItemAt(0).getString()); assertEquals("\u65E5\u672C\u30AA\u30E9\u30AF\u30EB", rtbl.getItemAt(3).getString()); -- 2.39.5