View | Details | Raw Unified | Return to bug 60742
Collapse All | Expand All

(-)poi/src/ooxml/testcases/org/apache/poi/xssf/TestXSSFCloneSheet.java (-1 / +4 lines)
Lines 25-35 Link Here
25
import org.apache.poi.ss.usermodel.BaseTestCloneSheet;
25
import org.apache.poi.ss.usermodel.BaseTestCloneSheet;
26
import org.apache.poi.ss.usermodel.Sheet;
26
import org.apache.poi.ss.usermodel.Sheet;
27
import org.apache.poi.ss.usermodel.Workbook;
27
import org.apache.poi.ss.usermodel.Workbook;
28
import org.apache.poi.util.TempFile;
28
import org.apache.poi.xssf.usermodel.XSSFSheet;
29
import org.apache.poi.xssf.usermodel.XSSFSheet;
29
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
30
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
30
import org.junit.Before;
31
import org.junit.Before;
31
import org.junit.Test;
32
import org.junit.Test;
32
33
34
import java.io.File;
33
import java.io.FileOutputStream;
35
import java.io.FileOutputStream;
34
import java.io.IOException;
36
import java.io.IOException;
35
import java.io.OutputStream;
37
import java.io.OutputStream;
Lines 81-87 Link Here
81
        assertNotNull(wbBack);
83
        assertNotNull(wbBack);
82
        wbBack.close();
84
        wbBack.close();
83
85
84
        OutputStream str = new FileOutputStream("/tmp/60512.xlsx");
86
        File tmp = TempFile.createTempFile("60512.xlsx", ".tmp");
87
        OutputStream str = new FileOutputStream(tmp);
85
        try {
88
        try {
86
            wb.write(str);
89
            wb.write(str);
87
        } finally {
90
        } finally {

Return to bug 60742