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
7d1fe480a5
commit
3ba0ccc9a8
BIN
src/testcases/org/apache/poi/hssf/data/DBCSSheetName.xls
Normal file
BIN
src/testcases/org/apache/poi/hssf/data/DBCSSheetName.xls
Normal file
Binary file not shown.
@ -394,6 +394,20 @@ public class TestHSSFSheet
|
|||||||
assertEquals("column breaks number", 2, sheet.getColumnBreaks().length);
|
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) {
|
public static void main(java.lang.String[] args) {
|
||||||
|
Loading…
Reference in New Issue
Block a user