Skip to content

Commit

Permalink
Test for remove row bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Glen Stampoultzis committed Apr 24, 2002
1 parent 69e22c9 commit 86d593e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/testcases/org/apache/poi/hssf/usermodel/TestHSSFSheet.java
Expand Up @@ -58,8 +58,6 @@
import org.apache.poi.hssf.model.Sheet;
import org.apache.poi.hssf.record.VCenterRecord;
import org.apache.poi.hssf.record.WSBoolRecord;
import org.apache.poi.hssf.record.RowRecord;
import org.apache.poi.hssf.dev.BiffViewer;

import java.io.File;
import java.io.FileInputStream;
Expand Down Expand Up @@ -191,8 +189,14 @@ public void testReadBooleans()
tempFile.delete();
assertNotNull(row);
assertEquals(2, row.getPhysicalNumberOfCells());
}


public void testRemoveRow()
{
HSSFWorkbook workbook = new HSSFWorkbook();
HSSFSheet sheet = workbook.createSheet("Test boolean");
HSSFRow row = sheet.createRow((short) 2);
sheet.removeRow(row);
}

}

0 comments on commit 86d593e

Please sign in to comment.