001: /* ====================================================================
002: Licensed to the Apache Software Foundation (ASF) under one or more
003: contributor license agreements. See the NOTICE file distributed with
004: this work for additional information regarding copyright ownership.
005: The ASF licenses this file to You under the Apache License, Version 2.0
006: (the "License"); you may not use this file except in compliance with
007: the License. You may obtain a copy of the License at
008:
009: http://www.apache.org/licenses/LICENSE-2.0
010:
011: Unless required by applicable law or agreed to in writing, software
012: distributed under the License is distributed on an "AS IS" BASIS,
013: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: See the License for the specific language governing permissions and
015: limitations under the License.
016: ==================================================================== */
017:
018: package org.apache.poi.hssf;
019:
020: import junit.framework.Test;
021: import junit.framework.TestSuite;
022:
023: import org.apache.poi.hssf.eventmodel.TestEventRecordFactory;
024: import org.apache.poi.hssf.eventmodel.TestModelFactory;
025: import org.apache.poi.hssf.model.TestFormulaParser;
026: import org.apache.poi.hssf.model.TestDrawingManager;
027: import org.apache.poi.hssf.model.TestSheet;
028: import org.apache.poi.hssf.record.TestAreaFormatRecord;
029: import org.apache.poi.hssf.record.TestAreaRecord;
030: import org.apache.poi.hssf.record.TestAxisLineFormatRecord;
031: import org.apache.poi.hssf.record.TestAxisOptionsRecord;
032: import org.apache.poi.hssf.record.TestAxisParentRecord;
033: import org.apache.poi.hssf.record.TestAxisRecord;
034: import org.apache.poi.hssf.record.TestAxisUsedRecord;
035: import org.apache.poi.hssf.record.TestBarRecord;
036: import org.apache.poi.hssf.record.TestBoundSheetRecord;
037: import org.apache.poi.hssf.record.TestCategorySeriesAxisRecord;
038: import org.apache.poi.hssf.record.TestChartRecord;
039: import org.apache.poi.hssf.record.TestDatRecord;
040: import org.apache.poi.hssf.record.TestDataFormatRecord;
041: import org.apache.poi.hssf.record.TestDefaultDataLabelTextPropertiesRecord;
042: import org.apache.poi.hssf.record.TestFontBasisRecord;
043: import org.apache.poi.hssf.record.TestFontIndexRecord;
044: import org.apache.poi.hssf.record.TestFormulaRecord;
045: import org.apache.poi.hssf.record.TestFrameRecord;
046: import org.apache.poi.hssf.record.TestLegendRecord;
047: import org.apache.poi.hssf.record.TestLineFormatRecord;
048: import org.apache.poi.hssf.record.TestLinkedDataRecord;
049: import org.apache.poi.hssf.record.TestNameRecord;
050: import org.apache.poi.hssf.record.TestNumberFormatIndexRecord;
051: import org.apache.poi.hssf.record.TestObjectLinkRecord;
052: import org.apache.poi.hssf.record.TestPaletteRecord;
053: import org.apache.poi.hssf.record.TestPlotAreaRecord;
054: import org.apache.poi.hssf.record.TestPlotGrowthRecord;
055: import org.apache.poi.hssf.record.TestRecordFactory;
056: import org.apache.poi.hssf.record.TestSCLRecord;
057: import org.apache.poi.hssf.record.TestSSTDeserializer;
058: import org.apache.poi.hssf.record.TestSSTRecord;
059: import org.apache.poi.hssf.record.TestSSTRecordSizeCalculator;
060: import org.apache.poi.hssf.record.TestSeriesChartGroupIndexRecord;
061: import org.apache.poi.hssf.record.TestSeriesIndexRecord;
062: import org.apache.poi.hssf.record.TestSeriesLabelsRecord;
063: import org.apache.poi.hssf.record.TestSeriesListRecord;
064: import org.apache.poi.hssf.record.TestSeriesRecord;
065: import org.apache.poi.hssf.record.TestSeriesTextRecord;
066: import org.apache.poi.hssf.record.TestSeriesToChartGroupRecord;
067: import org.apache.poi.hssf.record.TestSheetPropertiesRecord;
068: import org.apache.poi.hssf.record.TestStringRecord;
069: import org.apache.poi.hssf.record.TestSupBookRecord;
070: import org.apache.poi.hssf.record.TestTextRecord;
071: import org.apache.poi.hssf.record.TestTickRecord;
072: import org.apache.poi.hssf.record.TestUnicodeString;
073: import org.apache.poi.hssf.record.TestUnitsRecord;
074: import org.apache.poi.hssf.record.TestValueRangeRecord;
075: import org.apache.poi.hssf.record.aggregates.TestRowRecordsAggregate;
076: import org.apache.poi.hssf.record.aggregates.TestValueRecordsAggregate;
077: import org.apache.poi.hssf.record.formula.TestAreaErrPtg;
078: import org.apache.poi.hssf.record.formula.TestErrPtg;
079: import org.apache.poi.hssf.record.formula.TestFuncPtg;
080: import org.apache.poi.hssf.record.formula.TestIntersectionPtg;
081: import org.apache.poi.hssf.record.formula.TestPercentPtg;
082: import org.apache.poi.hssf.record.formula.TestRangePtg;
083: import org.apache.poi.hssf.record.formula.TestUnionPtg;
084: import org.apache.poi.hssf.usermodel.TestBugs;
085: import org.apache.poi.hssf.usermodel.TestCellStyle;
086: import org.apache.poi.hssf.usermodel.TestCloneSheet;
087: import org.apache.poi.hssf.usermodel.TestEscherGraphics;
088: import org.apache.poi.hssf.usermodel.TestEscherGraphics2d;
089: import org.apache.poi.hssf.usermodel.TestFontDetails;
090: import org.apache.poi.hssf.usermodel.TestFormulas;
091: import org.apache.poi.hssf.usermodel.TestHSSFCell;
092: import org.apache.poi.hssf.usermodel.TestHSSFClientAnchor;
093: import org.apache.poi.hssf.usermodel.TestHSSFDateUtil;
094: import org.apache.poi.hssf.usermodel.TestHSSFHeaderFooter;
095: import org.apache.poi.hssf.usermodel.TestHSSFPalette;
096: import org.apache.poi.hssf.usermodel.TestHSSFRichTextString;
097: import org.apache.poi.hssf.usermodel.TestHSSFRow;
098: import org.apache.poi.hssf.usermodel.TestHSSFSheet;
099: import org.apache.poi.hssf.usermodel.TestHSSFSheetOrder;
100: import org.apache.poi.hssf.usermodel.TestHSSFSheetSetOrder;
101: import org.apache.poi.hssf.usermodel.TestHSSFWorkbook;
102: import org.apache.poi.hssf.usermodel.TestNamedRange;
103: import org.apache.poi.hssf.usermodel.TestReadWriteChart;
104: import org.apache.poi.hssf.usermodel.TestSanityChecker;
105: import org.apache.poi.hssf.usermodel.TestSheetShiftRows;
106: import org.apache.poi.hssf.usermodel.TestWorkbook;
107: import org.apache.poi.hssf.util.TestAreaReference;
108: import org.apache.poi.hssf.util.TestCellReference;
109: import org.apache.poi.hssf.util.TestRKUtil;
110: import org.apache.poi.hssf.util.TestRangeAddress;
111: import org.apache.poi.hssf.util.TestSheetReferences;
112: import org.apache.poi.hssf.usermodel.TestHSSFComment;
113:
114: /**
115: * Test Suite for running just HSSF tests. Mostly
116: * this is for my convienience.
117: *
118: * @author Andrew C. Oliver acoliver@apache.org
119: */
120: public class HSSFTests {
121:
122: public static void main(String[] args) {
123: junit.textui.TestRunner.run(suite());
124: }
125:
126: public static Test suite() {
127: TestSuite suite = new TestSuite(
128: "Test for org.apache.poi.hssf.usermodel");
129: //$JUnit-BEGIN$
130:
131: suite.addTest(new TestSuite(TestBugs.class));
132: suite.addTest(new TestSuite(TestCloneSheet.class));
133: suite.addTest(new TestSuite(TestEscherGraphics.class));
134: suite.addTest(new TestSuite(TestEscherGraphics2d.class));
135: suite.addTest(new TestSuite(TestFontDetails.class));
136: suite.addTest(new TestSuite(TestHSSFClientAnchor.class));
137: suite.addTest(new TestSuite(TestHSSFHeaderFooter.class));
138: suite.addTest(new TestSuite(TestHSSFRichTextString.class));
139: suite.addTest(new TestSuite(TestHSSFSheetOrder.class));
140: suite.addTest(new TestSuite(TestHSSFSheetSetOrder.class));
141: suite.addTest(new TestSuite(TestHSSFWorkbook.class));
142: suite.addTest(new TestSuite(TestSanityChecker.class));
143: suite.addTest(new TestSuite(TestSheetShiftRows.class));
144:
145: suite.addTest(new TestSuite(TestCellStyle.class));
146: suite.addTest(new TestSuite(TestFormulas.class));
147: suite.addTest(new TestSuite(TestHSSFCell.class));
148: suite.addTest(new TestSuite(TestHSSFDateUtil.class));
149: suite.addTest(new TestSuite(TestHSSFPalette.class));
150: suite.addTest(new TestSuite(TestHSSFRow.class));
151: suite.addTest(new TestSuite(TestHSSFSheet.class));
152: suite.addTest(new TestSuite(TestNamedRange.class));
153: suite.addTest(new TestSuite(TestReadWriteChart.class));
154: suite.addTest(new TestSuite(TestWorkbook.class));
155:
156: suite.addTest(new TestSuite(TestFormulaParser.class));
157: suite.addTest(new TestSuite(TestAreaFormatRecord.class));
158: suite.addTest(new TestSuite(TestAreaRecord.class));
159: suite.addTest(new TestSuite(TestAxisLineFormatRecord.class));
160: suite.addTest(new TestSuite(TestAxisOptionsRecord.class));
161: suite.addTest(new TestSuite(TestAxisParentRecord.class));
162: suite.addTest(new TestSuite(TestAxisRecord.class));
163: suite.addTest(new TestSuite(TestAxisUsedRecord.class));
164: suite.addTest(new TestSuite(TestBarRecord.class));
165: suite.addTest(new TestSuite(TestBoundSheetRecord.class));
166: suite
167: .addTest(new TestSuite(
168: TestCategorySeriesAxisRecord.class));
169: suite.addTest(new TestSuite(TestChartRecord.class));
170: suite.addTest(new TestSuite(TestDatRecord.class));
171: suite.addTest(new TestSuite(TestDataFormatRecord.class));
172: suite.addTest(new TestSuite(
173: TestDefaultDataLabelTextPropertiesRecord.class));
174: suite.addTest(new TestSuite(TestFontBasisRecord.class));
175: suite.addTest(new TestSuite(TestFontIndexRecord.class));
176: suite.addTest(new TestSuite(TestFormulaRecord.class));
177: suite.addTest(new TestSuite(TestFrameRecord.class));
178: suite.addTest(new TestSuite(TestLegendRecord.class));
179: suite.addTest(new TestSuite(TestLineFormatRecord.class));
180: suite.addTest(new TestSuite(TestLinkedDataRecord.class));
181: suite.addTest(new TestSuite(TestNumberFormatIndexRecord.class));
182: suite.addTest(new TestSuite(TestObjectLinkRecord.class));
183: suite.addTest(new TestSuite(TestPaletteRecord.class));
184: suite.addTest(new TestSuite(TestPlotAreaRecord.class));
185: suite.addTest(new TestSuite(TestPlotGrowthRecord.class));
186: suite.addTest(new TestSuite(TestRecordFactory.class));
187: suite.addTest(new TestSuite(TestSCLRecord.class));
188: suite.addTest(new TestSuite(TestSSTDeserializer.class));
189: suite.addTest(new TestSuite(TestSSTRecord.class));
190: suite.addTest(new TestSuite(TestSSTRecordSizeCalculator.class));
191: suite.addTest(new TestSuite(
192: TestSeriesChartGroupIndexRecord.class));
193: suite.addTest(new TestSuite(TestSeriesIndexRecord.class));
194: suite.addTest(new TestSuite(TestSeriesLabelsRecord.class));
195: suite.addTest(new TestSuite(TestSeriesListRecord.class));
196: suite.addTest(new TestSuite(TestSeriesRecord.class));
197: suite.addTest(new TestSuite(TestSeriesTextRecord.class));
198: suite
199: .addTest(new TestSuite(
200: TestSeriesToChartGroupRecord.class));
201: suite.addTest(new TestSuite(TestSheetPropertiesRecord.class));
202: suite.addTest(new TestSuite(TestStringRecord.class));
203: suite.addTest(new TestSuite(TestSupBookRecord.class));
204: suite.addTest(new TestSuite(TestTextRecord.class));
205: suite.addTest(new TestSuite(TestTickRecord.class));
206: suite.addTest(new TestSuite(TestUnicodeString.class));
207: suite.addTest(new TestSuite(TestUnitsRecord.class));
208: suite.addTest(new TestSuite(TestValueRangeRecord.class));
209: suite.addTest(new TestSuite(TestRowRecordsAggregate.class));
210: suite.addTest(new TestSuite(TestAreaReference.class));
211: suite.addTest(new TestSuite(TestCellReference.class));
212: suite.addTest(new TestSuite(TestRangeAddress.class));
213: suite.addTest(new TestSuite(TestRKUtil.class));
214: suite.addTest(new TestSuite(TestSheetReferences.class));
215:
216: suite.addTest(new TestSuite(TestAreaErrPtg.class));
217: suite.addTest(new TestSuite(TestErrPtg.class));
218: suite.addTest(new TestSuite(TestFuncPtg.class));
219: suite.addTest(new TestSuite(TestIntersectionPtg.class));
220: suite.addTest(new TestSuite(TestPercentPtg.class));
221: suite.addTest(new TestSuite(TestRangePtg.class));
222: suite.addTest(new TestSuite(TestUnionPtg.class));
223: suite.addTest(new TestSuite(TestValueRecordsAggregate.class));
224: suite.addTest(new TestSuite(TestNameRecord.class));
225: suite.addTest(new TestSuite(TestEventRecordFactory.class));
226: suite.addTest(new TestSuite(TestModelFactory.class));
227: suite.addTest(new TestSuite(TestDrawingManager.class));
228: suite.addTest(new TestSuite(TestSheet.class));
229:
230: suite.addTest(new TestSuite(TestHSSFComment.class));
231: //$JUnit-END$
232: return suite;
233: }
234: }
|