mirror of https://github.com/apache/poi.git
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:
parent
90bc3e260a
commit
52cdc2142f
Binary file not shown.
|
@ -394,6 +394,20 @@ public class TestHSSFSheet
|
|||
assertEquals("column breaks number", 2, sheet.getColumnBreaks().length);
|
||||
|
||||
|
||||
}
|
||||
|
||||
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) {
|
||||
|
|
Loading…
Reference in New Issue