mirror of
https://github.com/apache/poi.git
synced 2025-02-23 02:52:26 +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
|
||||
public void testRewriteFileBug58480() throws Exception {
|
||||
final File file = new File(
|
||||
"build/HSSFWorkbookTest-testWriteScenario.xls");
|
||||
final File file = TempFile.createTempFile("TestHSSFWorkbook", ".xls");
|
||||
|
||||
try {
|
||||
// create new workbook
|
||||
{
|
||||
final Workbook workbook = new HSSFWorkbook();
|
||||
@ -1227,6 +1227,10 @@ public final class TestHSSFWorkbook extends BaseTestWorkbook {
|
||||
fs.close();
|
||||
}
|
||||
}
|
||||
} finally {
|
||||
assertTrue(file.exists());
|
||||
assertTrue(file.delete());
|
||||
}
|
||||
}
|
||||
|
||||
private void writeAndCloseWorkbook(Workbook workbook, File file)
|
||||
|
Loading…
x
Reference in New Issue
Block a user