aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases/org/apache/poi/ss/usermodel/BaseTestWorkbook.java
diff options
context:
space:
mode:
authorYegor Kozlov <yegor@apache.org>2011-05-18 10:37:31 +0000
committerYegor Kozlov <yegor@apache.org>2011-05-18 10:37:31 +0000
commit3f11efa41cc245d7ad627f6700152a57d1fdfcb3 (patch)
tree46e96423a0715e7da063681e3689115fc8a87af8 /src/testcases/org/apache/poi/ss/usermodel/BaseTestWorkbook.java
parent05be49ef24b84d3a2a921d61b7f70cb658da69ca (diff)
downloadpoi-3f11efa41cc245d7ad627f6700152a57d1fdfcb3.tar.gz
poi-3f11efa41cc245d7ad627f6700152a57d1fdfcb3.zip
initial support for SXSSF tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1124177 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi/ss/usermodel/BaseTestWorkbook.java')
-rw-r--r--src/testcases/org/apache/poi/ss/usermodel/BaseTestWorkbook.java26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/testcases/org/apache/poi/ss/usermodel/BaseTestWorkbook.java b/src/testcases/org/apache/poi/ss/usermodel/BaseTestWorkbook.java
index c3ddee0dda..a4a8d29cc8 100644
--- a/src/testcases/org/apache/poi/ss/usermodel/BaseTestWorkbook.java
+++ b/src/testcases/org/apache/poi/ss/usermodel/BaseTestWorkbook.java
@@ -37,7 +37,7 @@ public abstract class BaseTestWorkbook extends TestCase {
_testDataProvider = testDataProvider;
}
- public final void testCreateSheet() {
+ public void testCreateSheet() {
Workbook wb = _testDataProvider.createWorkbook();
assertEquals(0, wb.getNumberOfSheets());
@@ -125,7 +125,7 @@ public abstract class BaseTestWorkbook extends TestCase {
* avoid funny duplicate sheet name errors, POI enforces uniqueness on only the first 31 chars.
* but for the purpose of uniqueness long sheet names are silently truncated to 31 chars.
*/
- public final void testCreateSheetWithLongNames() {
+ public void testCreateSheetWithLongNames() {
Workbook wb = _testDataProvider.createWorkbook();
String sheetName1 = "My very long sheet name which is longer than 31 chars";
@@ -155,7 +155,7 @@ public abstract class BaseTestWorkbook extends TestCase {
assertEquals(1, wb.getSheetIndex(sheetName3));
}
- public final void testRemoveSheetAt() {
+ public void testRemoveSheetAt() {
Workbook workbook = _testDataProvider.createWorkbook();
workbook.createSheet("sheet1");
workbook.createSheet("sheet2");
@@ -177,7 +177,7 @@ public abstract class BaseTestWorkbook extends TestCase {
assertEquals(3, workbook.getNumberOfSheets());
}
- public final void testDefaultValues() {
+ public void testDefaultValues() {
Workbook b = _testDataProvider.createWorkbook();
assertEquals(0, b.getActiveSheetIndex());
assertEquals(0, b.getFirstVisibleTab());
@@ -185,7 +185,7 @@ public abstract class BaseTestWorkbook extends TestCase {
assertEquals(0, b.getNumberOfSheets());
}
- public final void testSheetSelection() {
+ public void testSheetSelection() {
Workbook b = _testDataProvider.createWorkbook();
b.createSheet("Sheet One");
b.createSheet("Sheet Two");
@@ -196,7 +196,7 @@ public abstract class BaseTestWorkbook extends TestCase {
assertEquals(1, b.getFirstVisibleTab());
}
- public final void testPrintArea() {
+ public void testPrintArea() {
Workbook workbook = _testDataProvider.createWorkbook();
Sheet sheet1 = workbook.createSheet("Test Print Area");
String sheetName1 = sheet1.getSheetName();
@@ -215,7 +215,7 @@ public abstract class BaseTestWorkbook extends TestCase {
assertNull(workbook.getPrintArea(0));
}
- public final void testGetSetActiveSheet(){
+ public void testGetSetActiveSheet(){
Workbook workbook = _testDataProvider.createWorkbook();
assertEquals(0, workbook.getActiveSheetIndex());
@@ -232,7 +232,7 @@ public abstract class BaseTestWorkbook extends TestCase {
assertEquals(0, workbook.getActiveSheetIndex());
}
- public final void testSetSheetOrder() {
+ public void testSetSheetOrder() {
Workbook wb = _testDataProvider.createWorkbook();
for (int i=0; i < 10; i++) {
@@ -288,7 +288,7 @@ public abstract class BaseTestWorkbook extends TestCase {
}
}
- public final void testCloneSheet() {
+ public void testCloneSheet() {
Workbook book = _testDataProvider.createWorkbook();
Sheet sheet = book.createSheet("TEST");
sheet.createRow(0).createCell(0).setCellValue("Test");
@@ -316,7 +316,7 @@ public abstract class BaseTestWorkbook extends TestCase {
}
- public final void testParentReferences(){
+ public void testParentReferences(){
Workbook workbook = _testDataProvider.createWorkbook();
Sheet sheet = workbook.createSheet();
assertSame(workbook, sheet.getWorkbook());
@@ -340,7 +340,7 @@ public abstract class BaseTestWorkbook extends TestCase {
assertSame(row, cell.getRow());
}
- public final void testSetRepeatingRowsAnsColumns(){
+ public void testSetRepeatingRowsAnsColumns(){
Workbook wb = _testDataProvider.createWorkbook();
Sheet sheet1 = wb.createSheet();
wb.setRepeatingRowsAndColumns(wb.getSheetIndex(sheet1), 0, 0, 0, 3);
@@ -353,7 +353,7 @@ public abstract class BaseTestWorkbook extends TestCase {
/**
* Tests that all of the unicode capable string fields can be set, written and then read back
*/
- public final void testUnicodeInAll() {
+ public void testUnicodeInAll() {
Workbook wb = _testDataProvider.createWorkbook();
CreationHelper factory = wb.getCreationHelper();
//Create a unicode dataformat (contains euro symbol)
@@ -467,7 +467,7 @@ public abstract class BaseTestWorkbook extends TestCase {
*
* @see <a href="https://issues.apache.org/bugzilla/show_bug.cgi?id=47100">Bugzilla 47100</a>
*/
- public final void testSetSheetName() throws Exception {
+ public void testSetSheetName() throws Exception {
Workbook wb = newSetSheetNameTestingWorkbook();