should have been submitted with r683081
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@683093 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3c755ee68c
commit
2988701bd6
File diff suppressed because it is too large
Load Diff
@ -14,26 +14,18 @@
|
|||||||
See the License for the specific language governing permissions and
|
See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
==================================================================== */
|
==================================================================== */
|
||||||
|
|
||||||
package org.apache.poi.hssf.usermodel;
|
package org.apache.poi.hssf.usermodel;
|
||||||
|
|
||||||
import java.io.File;
|
|
||||||
import java.io.FileInputStream;
|
|
||||||
|
|
||||||
import org.apache.poi.hssf.record.SeriesRecord;
|
|
||||||
|
|
||||||
import junit.framework.TestCase;
|
import junit.framework.TestCase;
|
||||||
|
|
||||||
public class TestHSSFChart extends TestCase {
|
import org.apache.poi.hssf.HSSFTestDataSamples;
|
||||||
private String dirName;
|
import org.apache.poi.hssf.record.SeriesRecord;
|
||||||
|
|
||||||
protected void setUp() throws Exception {
|
public final class TestHSSFChart extends TestCase {
|
||||||
dirName = System.getProperty("HSSF.testdata.path");
|
|
||||||
}
|
|
||||||
|
|
||||||
public void testSingleChart() throws Exception {
|
public void testSingleChart() throws Exception {
|
||||||
HSSFWorkbook wb = new HSSFWorkbook(
|
HSSFWorkbook wb = HSSFTestDataSamples.openSampleWorkbook("WithChart.xls");
|
||||||
new FileInputStream(new File(dirName, "WithChart.xls"))
|
|
||||||
);
|
|
||||||
|
|
||||||
HSSFSheet s1 = wb.getSheetAt(0);
|
HSSFSheet s1 = wb.getSheetAt(0);
|
||||||
HSSFSheet s2 = wb.getSheetAt(1);
|
HSSFSheet s2 = wb.getSheetAt(1);
|
||||||
@ -62,9 +54,7 @@ public class TestHSSFChart extends TestCase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void testTwoCharts() throws Exception {
|
public void testTwoCharts() throws Exception {
|
||||||
HSSFWorkbook wb = new HSSFWorkbook(
|
HSSFWorkbook wb = HSSFTestDataSamples.openSampleWorkbook("WithTwoCharts.xls");
|
||||||
new FileInputStream(new File(dirName, "WithTwoCharts.xls"))
|
|
||||||
);
|
|
||||||
|
|
||||||
HSSFSheet s1 = wb.getSheetAt(0);
|
HSSFSheet s1 = wb.getSheetAt(0);
|
||||||
HSSFSheet s2 = wb.getSheetAt(1);
|
HSSFSheet s2 = wb.getSheetAt(1);
|
||||||
@ -96,9 +86,7 @@ public class TestHSSFChart extends TestCase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void testThreeCharts() throws Exception {
|
public void testThreeCharts() throws Exception {
|
||||||
HSSFWorkbook wb = new HSSFWorkbook(
|
HSSFWorkbook wb = HSSFTestDataSamples.openSampleWorkbook("WithThreeCharts.xls");
|
||||||
new FileInputStream(new File(dirName, "WithThreeCharts.xls"))
|
|
||||||
);
|
|
||||||
|
|
||||||
HSSFSheet s1 = wb.getSheetAt(0);
|
HSSFSheet s1 = wb.getSheetAt(0);
|
||||||
HSSFSheet s2 = wb.getSheetAt(1);
|
HSSFSheet s2 = wb.getSheetAt(1);
|
||||||
|
Loading…
Reference in New Issue
Block a user