From 0ce3e462040c2796d0a653623ec7e5233933feb4 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Wed, 26 Jan 2022 13:46:56 +0000 Subject: [PATCH] add classes to suit Sayi/poi-tl git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1897506 13f79535-47bb-0310-9956-ffa450edef68 --- .../usermodel/TestNecessaryOOXMLClasses.java | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/poi-ooxml/src/test/java/org/apache/poi/xddf/usermodel/TestNecessaryOOXMLClasses.java b/poi-ooxml/src/test/java/org/apache/poi/xddf/usermodel/TestNecessaryOOXMLClasses.java index 949189ac16..77971ba982 100644 --- a/poi-ooxml/src/test/java/org/apache/poi/xddf/usermodel/TestNecessaryOOXMLClasses.java +++ b/poi-ooxml/src/test/java/org/apache/poi/xddf/usermodel/TestNecessaryOOXMLClasses.java @@ -201,4 +201,30 @@ class TestNecessaryOOXMLClasses { assertNotNull(stHoleSize); } + @Test + void testClassesForSayiPoiTl() { + //https://github.com/Sayi/poi-tl/tree/master/poi-ooxml-schemas-extra + CTCustSplit ctCustSplit = CTCustSplit.Factory.newInstance(); + assertNotNull(ctCustSplit); + CTOfPieChart ctOfPieChart = CTOfPieChart.Factory.newInstance(); + assertNotNull(ctOfPieChart); + CTOfPieType ctOfPieType = CTOfPieType.Factory.newInstance(); + assertNotNull(ctOfPieType); + CTSecondPieSize ctSecondPieSize = CTSecondPieSize.Factory.newInstance(); + assertNotNull(ctSecondPieSize); + CTSplitType ctSplitType = CTSplitType.Factory.newInstance(); + assertNotNull(ctSplitType); + STOfPieType stOfPieType = STOfPieType.Factory.newInstance(); + assertNotNull(stOfPieType); + assertNotNull(STOfPieType.Enum.forString("pie")); + STSecondPieSize stSecondPieSize = STSecondPieSize.Factory.newInstance(); + assertNotNull(stSecondPieSize); + STSecondPieSizePercent stSecondPieSizePercent = STSecondPieSizePercent.Factory.newInstance(); + assertNotNull(stSecondPieSizePercent); + STSecondPieSizeUShort stSecondPieSizeUShort = STSecondPieSizeUShort.Factory.newInstance(); + assertNotNull(stSecondPieSizeUShort); + STSplitType stSplitType = STSplitType.Factory.newInstance(); + assertNotNull(stSplitType); + assertNotNull(STSplitType.Enum.forString("auto")); + } } -- 2.39.5