mirror of https://github.com/apache/poi.git
Re-enable some SXSSF skipped tests, but not all, for our limited evaluation support #58200
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1693663 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e4c9b7ca51
commit
7e345b8186
|
@ -42,6 +42,7 @@ import org.apache.poi.xssf.SXSSFITestDataProvider;
|
||||||
import org.apache.poi.xssf.model.SharedStringsTable;
|
import org.apache.poi.xssf.model.SharedStringsTable;
|
||||||
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
|
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
|
||||||
import org.junit.After;
|
import org.junit.After;
|
||||||
|
import org.junit.Assume;
|
||||||
import org.junit.Ignore;
|
import org.junit.Ignore;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
@ -72,20 +73,13 @@ public final class TestSXSSFWorkbook extends BaseTestWorkbook {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* this test involves evaluation of formulas which isn't supported for SXSSF
|
* Skip this test, as SXSSF doesn't update formulas on sheet name
|
||||||
|
* changes.
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
@Test
|
@Test
|
||||||
public void setSheetName() {
|
public void setSheetName() {
|
||||||
try {
|
Assume.assumeTrue("SXSSF doesn't update formulas on sheet name changes, as most cells probably aren't in memory at the time", false);
|
||||||
super.setSheetName();
|
|
||||||
fail("expected exception");
|
|
||||||
} catch (ClassCastException e) { // TODO Temporary workaround during #58200
|
|
||||||
} catch (Exception e){
|
|
||||||
assertEquals(
|
|
||||||
"Unexpected type of cell: class org.apache.poi.xssf.streaming.SXSSFCell. " +
|
|
||||||
"Only XSSFCells can be evaluated.", e.getMessage());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -217,7 +211,7 @@ public final class TestSXSSFWorkbook extends BaseTestWorkbook {
|
||||||
@Test
|
@Test
|
||||||
public void sheetdataWriter(){
|
public void sheetdataWriter(){
|
||||||
SXSSFWorkbook wb = new SXSSFWorkbook();
|
SXSSFWorkbook wb = new SXSSFWorkbook();
|
||||||
SXSSFSheet sh = (SXSSFSheet)wb.createSheet();
|
SXSSFSheet sh = wb.createSheet();
|
||||||
SheetDataWriter wr = sh.getSheetDataWriter();
|
SheetDataWriter wr = sh.getSheetDataWriter();
|
||||||
assertTrue(wr.getClass() == SheetDataWriter.class);
|
assertTrue(wr.getClass() == SheetDataWriter.class);
|
||||||
File tmp = wr.getTempFile();
|
File tmp = wr.getTempFile();
|
||||||
|
@ -227,7 +221,7 @@ public final class TestSXSSFWorkbook extends BaseTestWorkbook {
|
||||||
|
|
||||||
wb = new SXSSFWorkbook();
|
wb = new SXSSFWorkbook();
|
||||||
wb.setCompressTempFiles(true);
|
wb.setCompressTempFiles(true);
|
||||||
sh = (SXSSFSheet)wb.createSheet();
|
sh = wb.createSheet();
|
||||||
wr = sh.getSheetDataWriter();
|
wr = sh.getSheetDataWriter();
|
||||||
assertTrue(wr.getClass() == GZIPSheetDataWriter.class);
|
assertTrue(wr.getClass() == GZIPSheetDataWriter.class);
|
||||||
tmp = wr.getTempFile();
|
tmp = wr.getTempFile();
|
||||||
|
|
|
@ -34,15 +34,11 @@ public final class TestSXSSFBugs extends BaseTestBugzillaIssues {
|
||||||
}
|
}
|
||||||
|
|
||||||
// override some tests which do not work for SXSSF
|
// override some tests which do not work for SXSSF
|
||||||
// TODO Re-enable some of these when #58200 is implemented
|
|
||||||
@Override @Ignore("cloneSheet() not implemented") @Test public void bug18800() { /* cloneSheet() not implemented */ }
|
@Override @Ignore("cloneSheet() not implemented") @Test public void bug18800() { /* cloneSheet() not implemented */ }
|
||||||
@Override @Ignore("cloneSheet() not implemented") @Test public void bug22720() { /* cloneSheet() not implemented */ }
|
@Override @Ignore("cloneSheet() not implemented") @Test public void bug22720() { /* cloneSheet() not implemented */ }
|
||||||
@Override @Ignore("Evaluation is not supported") @Test public void bug43093() { /* Evaluation is not supported */ }
|
@Override @Ignore("Evaluation is not fully supported") @Test public void bug47815() { /* Evaluation is not supported */ }
|
||||||
@Override @Ignore("Evaluation is not supported") @Test public void bug51024() { /* Evaluation is not supported */ }
|
@Override @Ignore("Evaluation is not fully supported") @Test public void test58113() { /* Evaluation is not supported */ }
|
||||||
@Override @Ignore("Evaluation is not supported") @Test public void bug46729_testMaxFunctionArguments() { /* Evaluation is not supported */ }
|
@Override @Ignore("Evaluation is not fully supported") @Test public void bug46729_testMaxFunctionArguments() { /* Evaluation is not supported */ }
|
||||||
@Override @Ignore("Evaluation is not supported") @Test public void stackoverflow26437323() { /* Evaluation is not supported */ }
|
|
||||||
@Override @Ignore("Evaluation is not supported") @Test public void bug47815() { /* Evaluation is not supported */ }
|
|
||||||
@Override @Ignore("Evaluation is not supported") @Test public void test58113() { /* Evaluation is not supported */ }
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Setting repeating rows and columns shouldn't break
|
* Setting repeating rows and columns shouldn't break
|
||||||
|
|
Loading…
Reference in New Issue