mirror of https://github.com/apache/poi.git
try to get more generated classes into poi-ooxml-schemas
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1835685 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ee1e389838
commit
283bc56376
|
@ -0,0 +1,89 @@
|
|||
/* ====================================================================
|
||||
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.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-schemas.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);
|
||||
CTMarker ctMarker = CTMarker.Factory.newInstance();
|
||||
Assert.assertNotNull(ctMarker);
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,35 @@
|
|||
/* ====================================================================
|
||||
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.xslf;
|
||||
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.openxmlformats.schemas.presentationml.x2006.main.CTHeaderFooter;
|
||||
import org.openxmlformats.schemas.presentationml.x2006.main.STPlaceholderSize;
|
||||
|
||||
// aim is to get these classes loaded and included in poi-ooxml-schemas.jar
|
||||
public class TestNecessaryOOXMLClasses {
|
||||
|
||||
@Test
|
||||
public void testProblemClasses() {
|
||||
STPlaceholderSize stPlaceholderSize = STPlaceholderSize.Factory.newInstance();
|
||||
Assert.assertNotNull(stPlaceholderSize);
|
||||
CTHeaderFooter ctHeaderFooter = CTHeaderFooter.Factory.newInstance();
|
||||
Assert.assertNotNull(ctHeaderFooter);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,36 @@
|
|||
/* ====================================================================
|
||||
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.xssf;
|
||||
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.openxmlformats.schemas.spreadsheetml.x2006.main.CTRow;
|
||||
import org.openxmlformats.schemas.spreadsheetml.x2006.main.CTSheetData;
|
||||
|
||||
// aim is to get these classes loaded and included in poi-ooxml-schemas.jar
|
||||
public class TestNecessaryOOXMLClasses {
|
||||
|
||||
@Test
|
||||
public void testProblemClasses() {
|
||||
CTRow row = CTRow.Factory.newInstance();
|
||||
CTSheetData sheetData = CTSheetData.Factory.newInstance();
|
||||
// need to get the inner class that implements the row list class loaded
|
||||
Assert.assertTrue(sheetData.getRowList().add(row));
|
||||
Assert.assertTrue(sheetData.getRowList().iterator().hasNext());
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue