From 31674ea13b5ad026a701802b60a8fce28748d17c Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Sat, 30 Jun 2018 14:49:31 +0000 Subject: [PATCH] try to get CTPhoneticRun added to poi-ooxml-schemas jar (referenced in excel-streaming-reader codebase) git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1834745 13f79535-47bb-0310-9956-ffa450edef68 --- build.xml | 2 +- .../org/apache/poi/xssf/model/TestSharedStringsTable.java | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/build.xml b/build.xml index d88018d5b..cee29abf0 100644 --- a/build.xml +++ b/build.xml @@ -294,7 +294,7 @@ under the License. - + diff --git a/src/ooxml/testcases/org/apache/poi/xssf/model/TestSharedStringsTable.java b/src/ooxml/testcases/org/apache/poi/xssf/model/TestSharedStringsTable.java index 061144e73..138e4f58c 100644 --- a/src/ooxml/testcases/org/apache/poi/xssf/model/TestSharedStringsTable.java +++ b/src/ooxml/testcases/org/apache/poi/xssf/model/TestSharedStringsTable.java @@ -30,6 +30,7 @@ import org.apache.poi.xssf.XSSFTestDataSamples; import org.apache.poi.xssf.usermodel.XSSFFont; import org.apache.poi.xssf.usermodel.XSSFRichTextString; import org.apache.poi.xssf.usermodel.XSSFWorkbook; +import org.openxmlformats.schemas.spreadsheetml.x2006.main.CTPhoneticRun; import org.openxmlformats.schemas.spreadsheetml.x2006.main.CTRElt; import org.openxmlformats.schemas.spreadsheetml.x2006.main.CTRPrElt; import org.openxmlformats.schemas.spreadsheetml.x2006.main.CTRst; @@ -199,6 +200,9 @@ public final class TestSharedStringsTable extends TestCase { CTRst st1 = items1.get(i); CTRst st2 = items2.get(i); assertEquals(st1.toString(), st2.toString()); + // ensure that CTPhoneticRun is loaded by the ooxml test suite so that it is included in poi-ooxml-schemas + List phList = st1.getRPhList(); + assertEquals(phList, st2.getRPhList()); } XSSFWorkbook wb3 = XSSFTestDataSamples.writeOutAndReadBack(wb2);