Skip to content

Commit 89ef0de

Browse files
committed
try to add more chart related classes to poi-ooxml-lite
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1920795 13f79535-47bb-0310-9956-ffa450edef68
1 parent e1379d3 commit 89ef0de

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

poi-ooxml/src/test/java/org/apache/poi/xddf/usermodel/TestNecessaryOOXMLClasses.java

+11-2
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,19 @@ void testProblemClasses() {
103103
assertNotNull(ctArea3DChart);
104104
CTSurfaceChart ctSurfaceChart = CTSurfaceChart.Factory.newInstance();
105105
assertNotNull(ctSurfaceChart);
106+
106107
CTDoughnutChart ctDoughnutChart = CTDoughnutChart.Factory.newInstance();
107108
assertNotNull(ctDoughnutChart);
109+
CTHoleSize ctHoleSize = CTHoleSize.Factory.newInstance();
110+
assertNotNull(ctHoleSize);
111+
STHoleSize stHoleSize = STHoleSize.Factory.newInstance();
112+
assertNotNull(stHoleSize);
113+
ctHoleSize.xsetVal(stHoleSize);
114+
STHoleSizePercent stHoleSizePercent = STHoleSizePercent.Factory.newInstance();
115+
assertNotNull(stHoleSizePercent);
116+
STHoleSizeUByte stHoleSizeUByte = STHoleSizeUByte.Factory.newInstance();
117+
assertNotNull(stHoleSizeUByte);
118+
108119
CTBar3DChart ctBar3DChart = CTBar3DChart.Factory.newInstance();
109120
assertNotNull(ctBar3DChart);
110121
CTLine3DChart ctLine3DChart = CTLine3DChart.Factory.newInstance();
@@ -197,8 +208,6 @@ void testProblemClasses() {
197208
assertNotNull(stDepthPercent);
198209
STHPercent sthPercent = STHPercent.Factory.newInstance();
199210
assertNotNull(sthPercent);
200-
STHoleSize stHoleSize = STHoleSize.Factory.newInstance();
201-
assertNotNull(stHoleSize);
202211
}
203212

204213
@Test

src/resources/ooxml-lite-report.clazz

+2
Original file line numberDiff line numberDiff line change
@@ -2549,3 +2549,5 @@ org/openxmlformats/schemas/drawingml/x2006/chart/impl/STAxisUnitImpl
25492549
org/openxmlformats/schemas/drawingml/x2006/chart/STAxisUnit
25502550
org/openxmlformats/schemas/drawingml/x2006/main/impl/CTAudioFileImpl
25512551
org/openxmlformats/schemas/drawingml/x2006/main/CTAudioFile
2552+
org/openxmlformats/schemas/drawingml/x2006/chart/impl/STHoleSizePercentImpl
2553+
org/openxmlformats/schemas/drawingml/x2006/chart/impl/STHoleSizeUByteImpl

src/resources/ooxml-lite-report.xsb

+2
Original file line numberDiff line numberDiff line change
@@ -1183,3 +1183,5 @@ ctpivotarea26cetype
11831183
ctpivotareareferencesaef6type
11841184
ctpivotareareferencee5a5type
11851185
ctindex5371type
1186+
stholesizepercenta3d2type
1187+
stholesizeubyte577atype

0 commit comments

Comments
 (0)