]> source.dussan.org Git - poi.git/commitdiff
try to get CTPhonetic included in poi-ooxml-schemas
authorPJ Fanning <fanningpj@apache.org>
Wed, 4 Jul 2018 11:38:32 +0000 (11:38 +0000)
committerPJ Fanning <fanningpj@apache.org>
Wed, 4 Jul 2018 11:38:32 +0000 (11:38 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1835048 13f79535-47bb-0310-9956-ffa450edef68

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

index 138e4f58c1dea6a9fd2cccbe191c48683b82fafe..18ee293dc3d9aa9bac4ccb6af49f97a78cdb36db 100644 (file)
@@ -203,6 +203,10 @@ public final class TestSharedStringsTable extends TestCase {
             // 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());
+            // this code is required to make sure all the necessary classes are loaded
+            CTPhoneticRun run = CTPhoneticRun.Factory.newInstance();
+            run.setEb(12);
+            assertEquals(12, run.getEb());
         }
 
         XSSFWorkbook wb3 = XSSFTestDataSamples.writeOutAndReadBack(wb2);