mirror of
https://github.com/apache/poi.git
synced 2025-02-23 10:59:11 +00:00
Update test to not depend on an existing build-directory
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1708682 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
76d99f9583
commit
6f2e63db99
@ -1200,9 +1200,9 @@ public final class TestHSSFWorkbook extends BaseTestWorkbook {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testRewriteFileBug58480() throws Exception {
|
public void testRewriteFileBug58480() throws Exception {
|
||||||
final File file = new File(
|
final File file = TempFile.createTempFile("TestHSSFWorkbook", ".xls");
|
||||||
"build/HSSFWorkbookTest-testWriteScenario.xls");
|
|
||||||
|
|
||||||
|
try {
|
||||||
// create new workbook
|
// create new workbook
|
||||||
{
|
{
|
||||||
final Workbook workbook = new HSSFWorkbook();
|
final Workbook workbook = new HSSFWorkbook();
|
||||||
@ -1227,6 +1227,10 @@ public final class TestHSSFWorkbook extends BaseTestWorkbook {
|
|||||||
fs.close();
|
fs.close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} finally {
|
||||||
|
assertTrue(file.exists());
|
||||||
|
assertTrue(file.delete());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void writeAndCloseWorkbook(Workbook workbook, File file)
|
private void writeAndCloseWorkbook(Workbook workbook, File file)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user