additional tests for DBCS sheet name

git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353655 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Avik Sengupta 2005-04-28 13:44:06 +00:00
parent 7d1fe480a5
commit 3ba0ccc9a8
2 changed files with 14 additions and 0 deletions

View File

@ -396,6 +396,20 @@ public class TestHSSFSheet
}
public void testDBCSName () throws Exception {
FileInputStream fis = null;
HSSFWorkbook wb = null;
String filename = System.getProperty("HSSF.testdata.path");
filename = filename + "/DBCSSheetName.xls";
fis = new FileInputStream(filename);
wb = new HSSFWorkbook(fis);
HSSFSheet s= wb.getSheetAt(1);
assertEquals ("DBCS Sheet Name 2", wb.getSheetName(1),"\u090f\u0915" );
assertEquals("DBCS Sheet Name 1", wb.getSheetName(0),"\u091c\u093e");
}
public static void main(java.lang.String[] args) {
junit.textui.TestRunner.run(TestHSSFSheet.class);
}