123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189 |
- /* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ==================================================================== */
-
- package org.apache.poi.xddf.usermodel;
-
- import org.apache.poi.xddf.usermodel.chart.ErrorBarType;
- import org.apache.poi.xddf.usermodel.chart.ErrorDirection;
- import org.apache.poi.xddf.usermodel.chart.ErrorValueType;
- import org.apache.poi.xddf.usermodel.chart.XDDFErrorBars;
- import org.junit.Assert;
- import org.junit.Test;
- import org.openxmlformats.schemas.drawingml.x2006.chart.*;
- import org.openxmlformats.schemas.drawingml.x2006.main.*;
-
- // aim is to get these classes loaded and included in poi-ooxml-lite.jar
- public class TestNecessaryOOXMLClasses {
-
- @Test
- public void testProblemClasses() {
- CTXYAdjustHandle ctxyAdjustHandle = CTXYAdjustHandle.Factory.newInstance();
- Assert.assertNotNull(ctxyAdjustHandle);
- CTPolarAdjustHandle ctPolarAdjustHandle = CTPolarAdjustHandle.Factory.newInstance();
- Assert.assertNotNull(ctPolarAdjustHandle);
- CTChartLines ctChartLines = CTChartLines.Factory.newInstance();
- Assert.assertNotNull(ctChartLines);
- CTDashStop ctDashStop = CTDashStop.Factory.newInstance();
- Assert.assertNotNull(ctDashStop);
- CTSurface ctSurface = CTSurface.Factory.newInstance();
- Assert.assertNotNull(ctSurface);
- CTLegendEntry ctLegendEntry = CTLegendEntry.Factory.newInstance();
- Assert.assertNotNull(ctLegendEntry);
- CTShape3D ctShape3D = CTShape3D.Factory.newInstance();
- Assert.assertNotNull(ctShape3D);
- CTScene3D ctScene3D = CTScene3D.Factory.newInstance();
- Assert.assertNotNull(ctScene3D);
- CTEffectContainer ctEffectContainer = CTEffectContainer.Factory.newInstance();
- Assert.assertNotNull(ctEffectContainer);
- CTConnectionSite ctConnectionSite = CTConnectionSite.Factory.newInstance();
- Assert.assertNotNull(ctConnectionSite);
- STLblAlgn stLblAlgn = STLblAlgn.Factory.newInstance();
- Assert.assertNotNull(stLblAlgn);
- STBlackWhiteMode stBlackWhiteMode = STBlackWhiteMode.Factory.newInstance();
- Assert.assertNotNull(stBlackWhiteMode);
- STRectAlignment stRectAlignment = STRectAlignment.Factory.newInstance();
- Assert.assertNotNull(stRectAlignment);
- STTileFlipMode stTileFlipMode = STTileFlipMode.Factory.newInstance();
- Assert.assertNotNull(stTileFlipMode);
- STPresetPatternVal stPresetPatternVal = STPresetPatternVal.Factory.newInstance();
- Assert.assertNotNull(stPresetPatternVal);
- STOnOffStyleType stOnOffStyleType = STOnOffStyleType.Factory.newInstance();
- Assert.assertNotNull(stOnOffStyleType);
- CTLineJoinBevel ctLineJoinBevel = CTLineJoinBevel.Factory.newInstance();
- Assert.assertNotNull(ctLineJoinBevel);
- CTLineJoinMiterProperties ctLineJoinMiterProperties = CTLineJoinMiterProperties.Factory.newInstance();
- Assert.assertNotNull(ctLineJoinMiterProperties);
- CTTileInfoProperties ctTileInfoProperties = CTTileInfoProperties.Factory.newInstance();
- Assert.assertNotNull(ctTileInfoProperties);
- CTTableStyleTextStyle ctTableStyleTextStyle = CTTableStyleTextStyle.Factory.newInstance();
- Assert.assertNotNull(ctTableStyleTextStyle);
- CTHeaderFooter ctHeaderFooter = CTHeaderFooter.Factory.newInstance();
- Assert.assertNotNull(ctHeaderFooter);
- CTMarkerSize ctMarkerSize = CTMarkerSize.Factory.newInstance();
- Assert.assertNotNull(ctMarkerSize);
- CTDLbls ctdLbls = CTDLbls.Factory.newInstance();
- Assert.assertNotNull(ctdLbls);
- CTMarker ctMarker = CTMarker.Factory.newInstance();
- Assert.assertNotNull(ctMarker);
- STMarkerStyle stMarkerStyle = STMarkerStyle.Factory.newInstance();
- Assert.assertNotNull(stMarkerStyle);
- CTMarkerStyle ctMarkerStyle = CTMarkerStyle.Factory.newInstance();
- Assert.assertNotNull(ctMarkerStyle);
- CTExternalData ctExternalData = CTExternalData.Factory.newInstance();
- Assert.assertNotNull(ctExternalData);
- CTAxisUnit ctAxisUnit = CTAxisUnit.Factory.newInstance();
- Assert.assertNotNull(ctAxisUnit);
- CTLblAlgn ctLblAlgn = CTLblAlgn.Factory.newInstance();
- Assert.assertNotNull(ctLblAlgn);
- CTDashStopList ctDashStopList = CTDashStopList.Factory.newInstance();
- Assert.assertNotNull(ctDashStopList);
- STDispBlanksAs stDashBlanksAs = STDispBlanksAs.Factory.newInstance();
- Assert.assertNotNull(stDashBlanksAs);
- CTDispBlanksAs ctDashBlanksAs = CTDispBlanksAs.Factory.newInstance();
- Assert.assertNotNull(ctDashBlanksAs);
- CTAreaChart ctAreaChart = CTAreaChart.Factory.newInstance();
- Assert.assertNotNull(ctAreaChart);
- CTArea3DChart ctArea3DChart = CTArea3DChart.Factory.newInstance();
- Assert.assertNotNull(ctArea3DChart);
- CTSurfaceChart ctSurfaceChart = CTSurfaceChart.Factory.newInstance();
- Assert.assertNotNull(ctSurfaceChart);
- CTDoughnutChart ctDoughnutChart = CTDoughnutChart.Factory.newInstance();
- Assert.assertNotNull(ctDoughnutChart);
- CTBar3DChart ctBar3DChart = CTBar3DChart.Factory.newInstance();
- Assert.assertNotNull(ctBar3DChart);
- CTLine3DChart ctLine3DChart = CTLine3DChart.Factory.newInstance();
- Assert.assertNotNull(ctLine3DChart);
- CTPie3DChart ctPie3DChart = CTPie3DChart.Factory.newInstance();
- Assert.assertNotNull(ctPie3DChart);
- CTSurface3DChart ctSurface3DChart = CTSurface3DChart.Factory.newInstance();
- Assert.assertNotNull(ctSurface3DChart);
- CTAreaSer ctAreaSer = CTAreaSer.Factory.newInstance();
- Assert.assertNotNull(ctAreaSer);
- CTSurfaceSer ctSurfaceSer = CTSurfaceSer.Factory.newInstance();
- Assert.assertNotNull(ctSurfaceSer);
- CTView3D ctView3D = CTView3D.Factory.newInstance();
- Assert.assertNotNull(ctView3D);
- STShape stShape = STShape.Factory.newInstance();
- Assert.assertNotNull(stShape);
-
- STLblAlgn.Enum e1 = STLblAlgn.Enum.forString("ctr");
- Assert.assertNotNull(e1);
- STBlackWhiteMode.Enum e2 = STBlackWhiteMode.Enum.forString("clr");
- Assert.assertNotNull(e2);
- STRectAlignment.Enum e3 = STRectAlignment.Enum.forString("ctr");
- Assert.assertNotNull(e3);
- STTileFlipMode.Enum e4 = STTileFlipMode.Enum.forString("xy");
- Assert.assertNotNull(e4);
- STPresetPatternVal.Enum e5 = STPresetPatternVal.Enum.forString("horz");
- Assert.assertNotNull(e5);
- STMarkerStyle.Enum e6 = STMarkerStyle.Enum.forString("circle");
- Assert.assertNotNull(e6);
- STDispBlanksAs.Enum e7 = STDispBlanksAs.Enum.forString("span");
- Assert.assertNotNull(e7);
- STShape.Enum e8 = STShape.Enum.forString("cone");
- Assert.assertNotNull(e8);
-
-
- CTTextBulletTypefaceFollowText ctTextBulletTypefaceFollowText = CTTextBulletTypefaceFollowText.Factory.newInstance();
- Assert.assertNotNull(ctTextBulletTypefaceFollowText);
- CTTextBulletSizeFollowText ctTextBulletSizeFollowText = CTTextBulletSizeFollowText.Factory.newInstance();
- Assert.assertNotNull(ctTextBulletSizeFollowText);
- CTTextBulletColorFollowText ctTextBulletColorFollowText = CTTextBulletColorFollowText.Factory.newInstance();
- Assert.assertNotNull(ctTextBulletColorFollowText);
- CTTextBlipBullet ctTextBlipBullet = CTTextBlipBullet.Factory.newInstance();
- Assert.assertNotNull(ctTextBlipBullet);
- CTRotX ctRotX = CTRotX.Factory.newInstance();
- Assert.assertNotNull(ctRotX);
- CTRotY ctRotY = CTRotY.Factory.newInstance();
- Assert.assertNotNull(ctRotY);
- CTPerspective ctPerspective = CTPerspective.Factory.newInstance();
- Assert.assertNotNull(ctPerspective);
- CTDepthPercent ctDepthPercent = CTDepthPercent.Factory.newInstance();
- Assert.assertNotNull(ctDepthPercent);
- CTHPercent ctHPercent = CTHPercent.Factory.newInstance();
- Assert.assertNotNull(ctHPercent);
- CTShape ctShape = CTShape.Factory.newInstance();
- Assert.assertNotNull(ctShape);
- CTOverlap ctOverlap = CTOverlap.Factory.newInstance();
- Assert.assertNotNull(ctOverlap);
- CTFirstSliceAng ctFirstSliceAng = CTFirstSliceAng.Factory.newInstance();
- Assert.assertNotNull(ctFirstSliceAng);
-
- Assert.assertNotNull(ErrorBarType.BOTH);
- Assert.assertNotNull(ErrorValueType.CUSTOM);
- Assert.assertNotNull(ErrorDirection.X);
- XDDFErrorBars xeb = new XDDFErrorBars();
- Assert.assertNotNull(xeb);
- Assert.assertNull(xeb.getErrorBarType());
- Assert.assertNull(xeb.getErrorDirection());
- Assert.assertNull(xeb.getErrorValueType());
-
- Assert.assertNotNull(CTErrBarType.Factory.newInstance());
- Assert.assertNotNull(CTErrValType.Factory.newInstance());
- Assert.assertNotNull(CTErrDir.Factory.newInstance());
-
- STErrBarType.Enum e9 = STErrBarType.Enum.forString("both");
- Assert.assertNotNull(e9);
- STErrValType.Enum e10 = STErrValType.Enum.forString("percentage");
- Assert.assertNotNull(e10);
- STErrDir.Enum e11 = STErrDir.Enum.forString("x");
- Assert.assertNotNull(e11);
- CTErrBars bars = CTErrBars.Factory.newInstance();
- Assert.assertNotNull(bars);
- }
-
- }
|