mirror of https://github.com/apache/poi.git
convert to junit4
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1738738 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
01ec1cf697
commit
c5135474af
|
@ -17,13 +17,18 @@
|
|||
|
||||
package org.apache.poi.xssf.usermodel;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
import static org.junit.Assert.fail;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import org.apache.poi.ss.usermodel.Row;
|
||||
import org.apache.poi.xssf.XSSFTestDataSamples;
|
||||
|
||||
public final class TestXSSFChartSheet extends TestCase {
|
||||
public final class TestXSSFChartSheet {
|
||||
|
||||
@Test
|
||||
public void testXSSFFactory() {
|
||||
XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("chart_sheet.xlsx");
|
||||
assertEquals(4, wb.getNumberOfSheets());
|
||||
|
@ -35,6 +40,7 @@ public final class TestXSSFChartSheet extends TestCase {
|
|||
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGetAccessors() {
|
||||
XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("chart_sheet.xlsx");
|
||||
XSSFChartSheet sheet = (XSSFChartSheet)wb.getSheetAt(2);
|
||||
|
@ -56,6 +62,7 @@ public final class TestXSSFChartSheet extends TestCase {
|
|||
assertEquals(true, sheet.getRowSumsBelow());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGetCharts() throws Exception {
|
||||
XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("chart_sheet.xlsx");
|
||||
|
||||
|
|
Loading…
Reference in New Issue