]> source.dussan.org Git - poi.git/commitdiff
try to get CTPhoneticRun added to poi-ooxml-schemas jar (referenced in excel-streamin...
authorPJ Fanning <fanningpj@apache.org>
Sat, 30 Jun 2018 14:49:31 +0000 (14:49 +0000)
committerPJ Fanning <fanningpj@apache.org>
Sat, 30 Jun 2018 14:49:31 +0000 (14:49 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1834745 13f79535-47bb-0310-9956-ffa450edef68

build.xml
src/ooxml/testcases/org/apache/poi/xssf/model/TestSharedStringsTable.java

index d88018d5b67452e5beebca827997f463cefc8970..cee29abf01173fcab9ae24ebe3cc2c1935582929 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -294,7 +294,7 @@ under the License.
     <property name="dist.sequence-library.jar" location="${compile.lib}/svnant/sequence-library-1.0.3.jar"/>
     <property name="dist.sequence-library.url" value="${repository.m2}/maven2/de/regnis/q/sequence/sequence-library/1.0.3/sequence-library-1.0.3.jar"/>
 
-    <property name="findbugs.url" value="http://downloads.sourceforge.net/project/findbugs/findbugs/3.0.1/findbugs-noUpdateChecks-3.0.1.zip?download="/>
+    <property name="findbugs.url" value="https://downloads.sourceforge.net/project/findbugs/findbugs/3.0.1/findbugs-noUpdateChecks-3.0.1.zip?download="/>
     <property name="findbugs.jar" location="${main.lib}/findbugs-noUpdateChecks-3.0.1.zip"/>
 
     <propertyset id="junit.properties">
index 061144e73562aabdadd91286b8905ed4b8e19f61..138e4f58c1dea6a9fd2cccbe191c48683b82fafe 100644 (file)
@@ -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<CTPhoneticRun> phList = st1.getRPhList();
+            assertEquals(phList, st2.getRPhList());
         }
 
         XSSFWorkbook wb3 = XSSFTestDataSamples.writeOutAndReadBack(wb2);