aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFWorkbook.java
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2013-08-23 18:56:11 +0000
committerDominik Stadler <centic@apache.org>2013-08-23 18:56:11 +0000
commitf06e06ef12df9c75dc50fd3baf8a9837a3750192 (patch)
tree782339d5a33b4b3d867c7ce8231988f934bb8bda /src/testcases/org/apache/poi/hssf/usermodel/TestHSSFWorkbook.java
parentfb90b50dbfc2e916401fd38c64a7f0f7461254d7 (diff)
downloadpoi-f06e06ef12df9c75dc50fd3baf8a9837a3750192.tar.gz
poi-f06e06ef12df9c75dc50fd3baf8a9837a3750192.zip
Add testcase which tries to reproduce Bug 48495, but seems to be fixed
now. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1516981 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi/hssf/usermodel/TestHSSFWorkbook.java')
-rw-r--r--src/testcases/org/apache/poi/hssf/usermodel/TestHSSFWorkbook.java13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFWorkbook.java b/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFWorkbook.java
index 6d49827bf6..1927727e42 100644
--- a/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFWorkbook.java
+++ b/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFWorkbook.java
@@ -965,17 +965,4 @@ public final class TestHSSFWorkbook extends BaseTestWorkbook {
HSSFWorkbook read = HSSFTestDataSamples.writeOutAndReadBack(wb);
assertSheetOrder(read, "Invoice", "Deferred", "Received", "Digest");
}
-
- private void assertSheetOrder(HSSFWorkbook wb, String... sheets) {
- StringBuilder sheetNames = new StringBuilder();
- for(int i = 0;i < wb.getNumberOfSheets();i++) {
- sheetNames.append(wb.getSheetAt(i).getSheetName()).append(",");
- }
- assertEquals("Had: " + sheetNames.toString(),
- sheets.length, wb.getNumberOfSheets());
- for(int i = 0;i < wb.getNumberOfSheets();i++) {
- assertEquals("Had: " + sheetNames.toString(),
- sheets[i], wb.getSheetAt(i).getSheetName());
- }
- }
}