bug 61840: close workbook to prevent resource leak in unit test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1816893 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
79250e916f
commit
58114c6d8c
@ -742,7 +742,7 @@ public abstract class BaseTestSheetShiftRows {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test61840_shifting_rows_up_does_not_produce_REF_errors() throws Exception {
|
||||
public void test61840_shifting_rows_up_does_not_produce_REF_errors() throws IOException {
|
||||
Workbook wb = _testDataProvider.createWorkbook();
|
||||
Sheet sheet = wb.createSheet();
|
||||
Cell cell = sheet.createRow(4).createCell(0);
|
||||
@ -759,6 +759,8 @@ public abstract class BaseTestSheetShiftRows {
|
||||
Cell shiftedCell = sheet.getRow(3).getCell(0);
|
||||
assertNotNull(shiftedCell);
|
||||
assertEquals("(B4-C4)/B4", shiftedCell.getCellFormula());
|
||||
|
||||
wb.close();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user