aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases/org/apache/poi/ss/usermodel/BaseTestSheet.java
diff options
context:
space:
mode:
authorJaven O'Neal <onealj@apache.org>2016-04-17 11:25:35 +0000
committerJaven O'Neal <onealj@apache.org>2016-04-17 11:25:35 +0000
commit01bd0b4a3987865c6f1305ff47d7ad617696b9b5 (patch)
tree0c2a1945ad34c921968e75d1795b2ac8f1f58709 /src/testcases/org/apache/poi/ss/usermodel/BaseTestSheet.java
parentd22bb45dfc0e5a736cbbf2e3defbb0923b0388ea (diff)
downloadpoi-01bd0b4a3987865c6f1305ff47d7ad617696b9b5.tar.gz
poi-01bd0b4a3987865c6f1305ff47d7ad617696b9b5.zip
revert r1739548 and r1739550. I could not figure out how to add BaseTestXWorkbook|Sheet|Row.java without causing junit to complain about 'Test class should have exactly one public constructor'
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1739580 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi/ss/usermodel/BaseTestSheet.java')
-rw-r--r--src/testcases/org/apache/poi/ss/usermodel/BaseTestSheet.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/testcases/org/apache/poi/ss/usermodel/BaseTestSheet.java b/src/testcases/org/apache/poi/ss/usermodel/BaseTestSheet.java
index 6d81606383..830298181c 100644
--- a/src/testcases/org/apache/poi/ss/usermodel/BaseTestSheet.java
+++ b/src/testcases/org/apache/poi/ss/usermodel/BaseTestSheet.java
@@ -51,10 +51,10 @@ public abstract class BaseTestSheet {
@Rule
public ExpectedException thrown = ExpectedException.none();
- protected final ITestDataProvider _testDataProvider;
+ private final ITestDataProvider _testDataProvider;
protected BaseTestSheet(ITestDataProvider testDataProvider) {
- _testDataProvider = testDataProvider;
+ _testDataProvider = testDataProvider;
}
protected void trackColumnsForAutoSizingIfSXSSF(Sheet sheet) {
@@ -116,9 +116,7 @@ public abstract class BaseTestSheet {
}
}
- @Test(expected=IllegalArgumentException.class)
- public void createRowAfterLastRow() throws IOException {
- final SpreadsheetVersion version = _testDataProvider.getSpreadsheetVersion();
+ protected void createRowAfterLastRow(SpreadsheetVersion version) throws IOException {
final Workbook workbook = _testDataProvider.createWorkbook();
final Sheet sh = workbook.createSheet();
sh.createRow(version.getLastRowIndex());
@@ -130,6 +128,7 @@ public abstract class BaseTestSheet {
}
}
+
@Test
public void removeRow() throws IOException {
Workbook workbook = _testDataProvider.createWorkbook();