KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > poi > hssf > HSSFTests


1
2 /* ====================================================================
3    Copyright 2002-2004 Apache Software Foundation
4
5    Licensed under the Apache License, Version 2.0 (the "License");
6    you may not use this file except in compliance with the License.
7    You may obtain a copy of the License at
8
9        http://www.apache.org/licenses/LICENSE-2.0
10
11    Unless required by applicable law or agreed to in writing, software
12    distributed under the License is distributed on an "AS IS" BASIS,
13    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14    See the License for the specific language governing permissions and
15    limitations under the License.
16 ==================================================================== */

17         
18 package org.apache.poi.hssf;
19
20 import junit.framework.Test;
21 import junit.framework.TestSuite;
22
23 import org.apache.poi.hssf.model.TestFormulaParser;
24 import org.apache.poi.hssf.record.TestAreaFormatRecord;
25 import org.apache.poi.hssf.record.TestAreaRecord;
26 import org.apache.poi.hssf.record.TestAxisLineFormatRecord;
27 import org.apache.poi.hssf.record.TestAxisOptionsRecord;
28 import org.apache.poi.hssf.record.TestAxisParentRecord;
29 import org.apache.poi.hssf.record.TestAxisRecord;
30 import org.apache.poi.hssf.record.TestAxisUsedRecord;
31 import org.apache.poi.hssf.record.TestBarRecord;
32 import org.apache.poi.hssf.record.TestBoundSheetRecord;
33 import org.apache.poi.hssf.record.TestCategorySeriesAxisRecord;
34 import org.apache.poi.hssf.record.TestChartRecord;
35 import org.apache.poi.hssf.record.TestDatRecord;
36 import org.apache.poi.hssf.record.TestDataFormatRecord;
37 import org.apache.poi.hssf.record.TestDefaultDataLabelTextPropertiesRecord;
38 import org.apache.poi.hssf.record.TestFontBasisRecord;
39 import org.apache.poi.hssf.record.TestFontIndexRecord;
40 import org.apache.poi.hssf.record.TestFormulaRecord;
41 import org.apache.poi.hssf.record.TestFrameRecord;
42 import org.apache.poi.hssf.record.TestLegendRecord;
43 import org.apache.poi.hssf.record.TestLineFormatRecord;
44 import org.apache.poi.hssf.record.TestLinkedDataRecord;
45 import org.apache.poi.hssf.record.TestNameRecord;
46 import org.apache.poi.hssf.record.TestNumberFormatIndexRecord;
47 import org.apache.poi.hssf.record.TestObjectLinkRecord;
48 import org.apache.poi.hssf.record.TestPaletteRecord;
49 import org.apache.poi.hssf.record.TestPlotAreaRecord;
50 import org.apache.poi.hssf.record.TestPlotGrowthRecord;
51 import org.apache.poi.hssf.record.TestRecordFactory;
52 import org.apache.poi.hssf.record.TestSCLRecord;
53 import org.apache.poi.hssf.record.TestSSTDeserializer;
54 import org.apache.poi.hssf.record.TestSSTRecord;
55 import org.apache.poi.hssf.record.TestSSTRecordSizeCalculator;
56 import org.apache.poi.hssf.record.TestSeriesChartGroupIndexRecord;
57 import org.apache.poi.hssf.record.TestSeriesIndexRecord;
58 import org.apache.poi.hssf.record.TestSeriesLabelsRecord;
59 import org.apache.poi.hssf.record.TestSeriesListRecord;
60 import org.apache.poi.hssf.record.TestSeriesRecord;
61 import org.apache.poi.hssf.record.TestSeriesTextRecord;
62 import org.apache.poi.hssf.record.TestSeriesToChartGroupRecord;
63 import org.apache.poi.hssf.record.TestSheetPropertiesRecord;
64 import org.apache.poi.hssf.record.TestStringRecord;
65 import org.apache.poi.hssf.record.TestSupBookRecord;
66 import org.apache.poi.hssf.record.TestTextRecord;
67 import org.apache.poi.hssf.record.TestTickRecord;
68 import org.apache.poi.hssf.record.TestUnitsRecord;
69 import org.apache.poi.hssf.record.TestValueRangeRecord;
70 import org.apache.poi.hssf.record.aggregates.TestRowRecordsAggregate;
71 import org.apache.poi.hssf.record.aggregates.TestValueRecordsAggregate;
72 import org.apache.poi.hssf.record.formula.TestFuncPtg;
73 import org.apache.poi.hssf.usermodel.TestCellStyle;
74 import org.apache.poi.hssf.usermodel.TestFormulas;
75 import org.apache.poi.hssf.usermodel.TestHSSFCell;
76 import org.apache.poi.hssf.usermodel.TestHSSFDateUtil;
77 import org.apache.poi.hssf.usermodel.TestHSSFPalette;
78 import org.apache.poi.hssf.usermodel.TestHSSFRow;
79 import org.apache.poi.hssf.usermodel.TestHSSFSheet;
80 import org.apache.poi.hssf.usermodel.TestNamedRange;
81 import org.apache.poi.hssf.usermodel.TestReadWriteChart;
82 import org.apache.poi.hssf.usermodel.TestWorkbook;
83 import org.apache.poi.hssf.util.TestAreaReference;
84 import org.apache.poi.hssf.util.TestCellReference;
85 import org.apache.poi.hssf.util.TestRKUtil;
86 import org.apache.poi.hssf.util.TestRangeAddress;
87 import org.apache.poi.hssf.util.TestSheetReferences;
88
89 /**
90  * Test Suite for running just HSSF tests. Mostly
91  * this is for my convienience.
92  *
93  * @author Andrew C. Oliver acoliver@apache.org
94  */

95 public class HSSFTests
96 {
97
98     public static void main(String JavaDoc[] args)
99     {
100         junit.textui.TestRunner.run(suite());
101     }
102
103     public static Test suite()
104     {
105         TestSuite suite =
106             new TestSuite("Test for org.apache.poi.hssf.usermodel");
107         //$JUnit-BEGIN$
108
suite.addTest(new TestSuite(TestCellStyle.class));
109         suite.addTest(new TestSuite(TestFormulas.class));
110         suite.addTest(new TestSuite(TestHSSFCell.class));
111         suite.addTest(new TestSuite(TestHSSFDateUtil.class));
112         suite.addTest(new TestSuite(TestHSSFPalette.class));
113         suite.addTest(new TestSuite(TestHSSFRow.class));
114         suite.addTest(new TestSuite(TestHSSFSheet.class));
115         suite.addTest(new TestSuite(TestNamedRange.class));
116         suite.addTest(new TestSuite(TestReadWriteChart.class));
117         suite.addTest(new TestSuite(TestWorkbook.class));
118         suite.addTest(new TestSuite(TestFormulaParser.class));
119         suite.addTest(new TestSuite(TestAreaFormatRecord.class));
120         suite.addTest(new TestSuite(TestAreaRecord.class));
121         suite.addTest(new TestSuite(TestAxisLineFormatRecord.class));
122         suite.addTest(new TestSuite(TestAxisOptionsRecord.class));
123         suite.addTest(new TestSuite(TestAxisParentRecord.class));
124         suite.addTest(new TestSuite(TestAxisRecord.class));
125         suite.addTest(new TestSuite(TestAxisUsedRecord.class));
126         suite.addTest(new TestSuite(TestBarRecord.class));
127         suite.addTest(new TestSuite(TestBoundSheetRecord.class));
128         suite.addTest(new TestSuite(TestCategorySeriesAxisRecord.class));
129         suite.addTest(new TestSuite(TestChartRecord.class));
130         suite.addTest(new TestSuite(TestDatRecord.class));
131         suite.addTest(new TestSuite(TestDataFormatRecord.class));
132         suite.addTest(
133             new TestSuite(TestDefaultDataLabelTextPropertiesRecord.class));
134         suite.addTest(new TestSuite(TestFontBasisRecord.class));
135         suite.addTest(new TestSuite(TestFontIndexRecord.class));
136         suite.addTest(new TestSuite(TestFormulaRecord.class));
137         suite.addTest(new TestSuite(TestFrameRecord.class));
138         suite.addTest(new TestSuite(TestLegendRecord.class));
139         suite.addTest(new TestSuite(TestLineFormatRecord.class));
140         suite.addTest(new TestSuite(TestLinkedDataRecord.class));
141         suite.addTest(new TestSuite(TestNumberFormatIndexRecord.class));
142         suite.addTest(new TestSuite(TestObjectLinkRecord.class));
143         suite.addTest(new TestSuite(TestPaletteRecord.class));
144         suite.addTest(new TestSuite(TestPlotAreaRecord.class));
145         suite.addTest(new TestSuite(TestPlotGrowthRecord.class));
146         suite.addTest(new TestSuite(TestRecordFactory.class));
147         suite.addTest(new TestSuite(TestSCLRecord.class));
148         suite.addTest(new TestSuite(TestSSTDeserializer.class));
149         suite.addTest(new TestSuite(TestSSTRecord.class));
150         suite.addTest(new TestSuite(TestSSTRecordSizeCalculator.class));
151         suite.addTest(new TestSuite(TestSeriesChartGroupIndexRecord.class));
152         suite.addTest(new TestSuite(TestSeriesIndexRecord.class));
153         suite.addTest(new TestSuite(TestSeriesLabelsRecord.class));
154         suite.addTest(new TestSuite(TestSeriesListRecord.class));
155         suite.addTest(new TestSuite(TestSeriesRecord.class));
156         suite.addTest(new TestSuite(TestSeriesTextRecord.class));
157         suite.addTest(new TestSuite(TestSeriesToChartGroupRecord.class));
158         suite.addTest(new TestSuite(TestSheetPropertiesRecord.class));
159         suite.addTest(new TestSuite(TestStringRecord.class));
160         suite.addTest(new TestSuite(TestSupBookRecord.class));
161         suite.addTest(new TestSuite(TestTextRecord.class));
162         suite.addTest(new TestSuite(TestTickRecord.class));
163         suite.addTest(new TestSuite(TestUnitsRecord.class));
164         suite.addTest(new TestSuite(TestValueRangeRecord.class));
165         suite.addTest(new TestSuite(TestRowRecordsAggregate.class));
166         suite.addTest(new TestSuite(TestAreaReference.class));
167         suite.addTest(new TestSuite(TestCellReference.class));
168           suite.addTest(new TestSuite(TestRangeAddress.class));
169         suite.addTest(new TestSuite(TestRKUtil.class));
170         suite.addTest(new TestSuite(TestSheetReferences.class));
171         
172         
173         suite.addTest(new TestSuite(TestFuncPtg.class));
174           suite.addTest(new TestSuite(TestValueRecordsAggregate.class));
175           suite.addTest(new TestSuite(TestNameRecord.class));
176         
177         //$JUnit-END$
178
return suite;
179     }
180 }
181
Popular Tags