aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases/org/apache/poi/hssf/eventusermodel
diff options
context:
space:
mode:
authorNick Burch <nick@apache.org>2014-07-24 21:25:45 +0000
committerNick Burch <nick@apache.org>2014-07-24 21:25:45 +0000
commit904d73c847dd8b893ed932f9cadce52a406f14b8 (patch)
tree1b8b6422c2166f1697ecf2c110bf0f67aa89a3e4 /src/testcases/org/apache/poi/hssf/eventusermodel
parent6a925882305492f55fe8f74a5358d459fbcb09d8 (diff)
downloadpoi-904d73c847dd8b893ed932f9cadce52a406f14b8.tar.gz
poi-904d73c847dd8b893ed932f9cadce52a406f14b8.zip
Rename some of the internal HSSF sheet lookup methods which deal with external sheet indicies, to make it clear when they return the first sheet name/index, and add support for getting the last one too (will be the same as the first if not a range)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1613305 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi/hssf/eventusermodel')
-rw-r--r--src/testcases/org/apache/poi/hssf/eventusermodel/TestEventWorkbookBuilder.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/testcases/org/apache/poi/hssf/eventusermodel/TestEventWorkbookBuilder.java b/src/testcases/org/apache/poi/hssf/eventusermodel/TestEventWorkbookBuilder.java
index 1b02cf2416..37b77423ba 100644
--- a/src/testcases/org/apache/poi/hssf/eventusermodel/TestEventWorkbookBuilder.java
+++ b/src/testcases/org/apache/poi/hssf/eventusermodel/TestEventWorkbookBuilder.java
@@ -78,9 +78,9 @@ public final class TestEventWorkbookBuilder extends TestCase {
assertEquals(3, listener.getStubWorkbook().getNumSheets());
InternalWorkbook ref = listener.getStubWorkbook();
- assertEquals("Sh3", ref.findSheetNameFromExternSheet(0));
- assertEquals("Sheet1", ref.findSheetNameFromExternSheet(1));
- assertEquals("S2", ref.findSheetNameFromExternSheet(2));
+ assertEquals("Sh3", ref.findSheetFirstNameFromExternSheet(0));
+ assertEquals("Sheet1", ref.findSheetFirstNameFromExternSheet(1));
+ assertEquals("S2", ref.findSheetFirstNameFromExternSheet(2));
}
public void testFormulas() {