poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject cvs commit: jakarta-poi/src/testcases/org/apache/poi/hssf/usermodel TestHSSFSheet.java
Date Thu, 28 Apr 2005 13:44:06 GMT
avik        2005/04/28 06:44:06

  Modified:    src/testcases/org/apache/poi/hssf/usermodel
                        TestHSSFSheet.java
  Added:       src/testcases/org/apache/poi/hssf/data DBCSSheetName.xls
  Log:
  additional tests for DBCS sheet name
  
  Revision  Changes    Path
  1.1                  jakarta-poi/src/testcases/org/apache/poi/hssf/data/DBCSSheetName.xls
  
  	<<Binary file>>
  
  
  1.23      +14 -0     jakarta-poi/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFSheet.java
  
  Index: TestHSSFSheet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-poi/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFSheet.java,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- TestHSSFSheet.java	12 Oct 2004 05:49:01 -0000	1.22
  +++ TestHSSFSheet.java	28 Apr 2005 13:44:06 -0000	1.23
  @@ -396,6 +396,20 @@
           
       }
       
  +    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);
   	}    
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
Mailing List:    http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta POI Project: http://jakarta.apache.org/poi/


Mime
View raw message