poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ye...@apache.org
Subject svn commit: r707445 [2/2] - in /poi/branches/ooxml/src/ooxml: interfaces-jdk15/org/apache/poi/ss/usermodel/ java/org/apache/poi/xssf/usermodel/ testcases/org/apache/poi/xssf/usermodel/
Date Thu, 23 Oct 2008 18:57:29 GMT
Modified: poi/branches/ooxml/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFSheet.java
URL: http://svn.apache.org/viewvc/poi/branches/ooxml/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFSheet.java?rev=707445&r1=707444&r2=707445&view=diff
==============================================================================
--- poi/branches/ooxml/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFSheet.java
(original)
+++ poi/branches/ooxml/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFSheet.java
Thu Oct 23 11:57:28 2008
@@ -793,9 +793,7 @@
 	    	//one level
 	    	sheet.groupRow(9,10);
 	    	assertEquals(2,sheet.rows.size());
-	    	CTRow[]rowArray=sheet.getWorksheet().getSheetData().getRowArray();    	
-	    	assertEquals(2,rowArray.length);
-	    	CTRow ctrow=rowArray[0];
+	    	CTRow ctrow = sheet.getRow(8).getCTRow();
 
 	    	assertNotNull(ctrow);
 	    	assertEquals(9,ctrow.getR());
@@ -804,10 +802,8 @@
 
 	    	//two level    	
 	    	sheet.groupRow(10,13);
-	    	rowArray=sheet.getWorksheet().getSheetData().getRowArray();    	
-	    	assertEquals(5,rowArray.length);
 	    	assertEquals(5,sheet.rows.size());
-	    	ctrow=rowArray[1];
+	    	ctrow = sheet.getRow(9).getCTRow();
 	    	assertNotNull(ctrow);
 	    	assertEquals(10,ctrow.getR());
 	    	assertEquals(2, ctrow.getOutlineLevel());
@@ -815,14 +811,11 @@
 
 	    	
 	    	sheet.ungroupRow(8, 10);
-	    	rowArray=sheet.getWorksheet().getSheetData().getRowArray();    	
-	    	assertEquals(4,rowArray.length);
+            assertEquals(4,sheet.rows.size());
 	    	assertEquals(1,sheet.getSheetTypeSheetFormatPr().getOutlineLevelRow());
 
 	    	sheet.ungroupRow(10,10);
-	    	rowArray=sheet.getWorksheet().getSheetData().getRowArray();    	
-	    	assertEquals(3,rowArray.length);
-	    	assertEquals(3,sheet.rows.size());
+            assertEquals(3,sheet.rows.size());
 
 	    	assertEquals(1,sheet.getSheetTypeSheetFormatPr().getOutlineLevelRow());
 	    }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message