You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ki...@apache.org on 2021/01/09 20:19:08 UTC
svn commit: r1885318 [2/3] - in
/poi/trunk/src/ooxml/testcases/org/apache/poi: extractor/ooxml/ ooxml/
ooxml/lite/ openxml4j/opc/ openxml4j/opc/compliance/
openxml4j/opc/internal/ openxml4j/opc/internal/marshallers/
poifs/crypt/dsig/ poifs/crypt/tests/...
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/eventusermodel/TestXSSFBReader.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/eventusermodel/TestXSSFBReader.java?rev=1885318&r1=1885317&r2=1885318&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/eventusermodel/TestXSSFBReader.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/eventusermodel/TestXSSFBReader.java Sat Jan 9 20:19:07 2021
@@ -168,7 +168,7 @@ public class TestXSSFBReader {
private class TestSheetHandler implements XSSFSheetXMLHandler.SheetContentsHandler {
private final StringBuilder sb = new StringBuilder();
- public void startSheet(String sheetName) {
+ void startSheet(String sheetName) {
sb.append("<sheet name=\"").append(sheetName).append(">");
}
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/extractor/TestXSSFEventBasedExcelExtractorUsingFactory.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/extractor/TestXSSFEventBasedExcelExtractorUsingFactory.java?rev=1885318&r1=1885317&r2=1885318&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/extractor/TestXSSFEventBasedExcelExtractorUsingFactory.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/extractor/TestXSSFEventBasedExcelExtractorUsingFactory.java Sat Jan 9 20:19:07 2021
@@ -29,7 +29,7 @@ public class TestXSSFEventBasedExcelExtr
}
@AfterEach
- public void tearDown() {
+ void tearDown() {
// reset setting to not affect other tests
ExtractorFactory.setAllThreadsPreferEventExtractors(null);
}
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/extractor/TestXSSFExcelExtractorUsingFactory.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/extractor/TestXSSFExcelExtractorUsingFactory.java?rev=1885318&r1=1885317&r2=1885318&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/extractor/TestXSSFExcelExtractorUsingFactory.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/extractor/TestXSSFExcelExtractorUsingFactory.java Sat Jan 9 20:19:07 2021
@@ -37,7 +37,7 @@ public final class TestXSSFExcelExtracto
}
@AfterEach
- public void tearDown() {
+ void tearDown() {
// reset setting to not affect other tests
ExtractorFactory.setAllThreadsPreferEventExtractors(null);
}
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/model/TestCommentsTable.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/model/TestCommentsTable.java?rev=1885318&r1=1885317&r2=1885318&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/model/TestCommentsTable.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/model/TestCommentsTable.java Sat Jan 9 20:19:07 2021
@@ -54,7 +54,7 @@ public class TestCommentsTable {
private static final String TEST_AUTHOR = "test author";
@Test
- public void findAuthor() {
+ void findAuthor() {
CommentsTable sheetComments = new CommentsTable();
assertEquals(1, sheetComments.getNumberOfAuthors());
assertEquals(0, sheetComments.findAuthor(""));
@@ -68,7 +68,7 @@ public class TestCommentsTable {
}
@Test
- public void getCellComment() {
+ void getCellComment() {
CommentsTable sheetComments = new CommentsTable();
CTComments comments = sheetComments.getCTComments();
@@ -94,7 +94,7 @@ public class TestCommentsTable {
@Test
- public void existing() throws IOException {
+ void existing() throws IOException {
try (Workbook workbook = XSSFTestDataSamples.openSampleWorkbook("WithVariousData.xlsx")) {
Sheet sheet1 = workbook.getSheetAt(0);
Sheet sheet2 = workbook.getSheetAt(1);
@@ -126,7 +126,7 @@ public class TestCommentsTable {
}
@Test
- public void writeRead() throws IOException {
+ void writeRead() throws IOException {
try (XSSFWorkbook workbook = XSSFTestDataSamples.openSampleWorkbook("WithVariousData.xlsx")) {
XSSFSheet sheet1 = workbook.getSheetAt(0);
XSSFSheet sheet2 = workbook.getSheetAt(1);
@@ -175,7 +175,7 @@ public class TestCommentsTable {
}
@Test
- public void readWriteMultipleAuthors() throws IOException {
+ void readWriteMultipleAuthors() throws IOException {
try (XSSFWorkbook workbook = XSSFTestDataSamples.openSampleWorkbook("WithMoreVariousData.xlsx")) {
XSSFSheet sheet1 = workbook.getSheetAt(0);
XSSFSheet sheet2 = workbook.getSheetAt(1);
@@ -213,7 +213,7 @@ public class TestCommentsTable {
}
@Test
- public void removeComment() {
+ void removeComment() {
final CellAddress addrA1 = new CellAddress("A1");
final CellAddress addrA2 = new CellAddress("A2");
final CellAddress addrA3 = new CellAddress("A3");
@@ -248,7 +248,7 @@ public class TestCommentsTable {
}
@Test
- public void bug54920() throws IOException {
+ void bug54920() throws IOException {
final Workbook workbook = new XSSFWorkbook();
final Sheet sheet = workbook.createSheet("sheet01");
// create anchor
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/model/TestExternalLinksTable.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/model/TestExternalLinksTable.java?rev=1885318&r1=1885317&r2=1885318&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/model/TestExternalLinksTable.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/model/TestExternalLinksTable.java Sat Jan 9 20:19:07 2021
@@ -30,7 +30,7 @@ import org.junit.jupiter.api.Test;
public final class TestExternalLinksTable {
@Test
- public void none() throws IOException {
+ void none() throws IOException {
try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("SampleSS.xlsx")) {
assertNotNull(wb.getExternalLinksTable());
assertEquals(0, wb.getExternalLinksTable().size());
@@ -38,7 +38,7 @@ public final class TestExternalLinksTabl
}
@Test
- public void basicRead() throws IOException {
+ void basicRead() throws IOException {
try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("ref-56737.xlsx")) {
assertNotNull(wb.getExternalLinksTable());
assertEquals(1, wb.getExternalLinksTable().size());
@@ -68,7 +68,7 @@ public final class TestExternalLinksTabl
}
@Test
- public void basicReadWriteRead() throws IOException {
+ void basicReadWriteRead() throws IOException {
try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("ref-56737.xlsx")) {
Name name = wb.getExternalLinksTable().get(0).getDefinedNames().get(1);
name.setNameName("Testing");
@@ -93,7 +93,7 @@ public final class TestExternalLinksTabl
}
@Test
- public void readWithReferencesToTwoExternalBooks() throws IOException {
+ void readWithReferencesToTwoExternalBooks() throws IOException {
try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("ref2-56737.xlsx")) {
assertNotNull(wb.getExternalLinksTable());
assertEquals(2, wb.getExternalLinksTable().size());
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/model/TestStylesTable.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/model/TestStylesTable.java?rev=1885318&r1=1885317&r2=1885318&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/model/TestStylesTable.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/model/TestStylesTable.java Sat Jan 9 20:19:07 2021
@@ -104,7 +104,7 @@ public final class TestStylesTable {
}
}
- public void doTestExisting(StylesTable st) {
+ void doTestExisting(StylesTable st) {
// Check contents
assertNotNull(st.getCTStylesheet());
assertEquals(11, st._getXfsSize());
@@ -132,7 +132,7 @@ public final class TestStylesTable {
}
@Test
- public void populateNew() throws IOException {
+ void populateNew() throws IOException {
try (XSSFWorkbook wb = new XSSFWorkbook()) {
StylesTable st = wb.getStylesSource();
@@ -164,7 +164,7 @@ public final class TestStylesTable {
}
@Test
- public void populateExisting() throws IOException {
+ void populateExisting() throws IOException {
try (XSSFWorkbook workbook = XSSFTestDataSamples.openSampleWorkbook(testFile)) {
assertNotNull(workbook.getStylesSource());
@@ -192,7 +192,7 @@ public final class TestStylesTable {
}
@Test
- public void exceedNumberFormatLimit() throws IOException {
+ void exceedNumberFormatLimit() throws IOException {
try (XSSFWorkbook wb = new XSSFWorkbook()) {
StylesTable styles = wb.getStylesSource();
for (int i = 0; i < styles.getMaxNumberOfDataFormats(); i++) {
@@ -216,7 +216,7 @@ public final class TestStylesTable {
}
@Test
- public void removeNumberFormat() throws IOException {
+ void removeNumberFormat() throws IOException {
try (XSSFWorkbook wb1 = new XSSFWorkbook()) {
final String fmt = customDataFormat;
final short fmtIdx = (short) wb1.getStylesSource().putNumberFormat(fmt);
@@ -269,7 +269,7 @@ public final class TestStylesTable {
}
@Test
- public void maxNumberOfDataFormats() throws IOException {
+ void maxNumberOfDataFormats() throws IOException {
try (XSSFWorkbook wb = new XSSFWorkbook()) {
StylesTable styles = wb.getStylesSource();
@@ -292,7 +292,7 @@ public final class TestStylesTable {
}
@Test
- public void addDataFormatsBeyondUpperLimit() throws IOException {
+ void addDataFormatsBeyondUpperLimit() throws IOException {
try (XSSFWorkbook wb = new XSSFWorkbook()) {
StylesTable styles = wb.getStylesSource();
styles.setMaxNumberOfDataFormats(0);
@@ -304,7 +304,7 @@ public final class TestStylesTable {
}
@Test
- public void decreaseUpperLimitBelowCurrentNumDataFormats() throws IOException {
+ void decreaseUpperLimitBelowCurrentNumDataFormats() throws IOException {
try (XSSFWorkbook wb = new XSSFWorkbook()) {
StylesTable styles = wb.getStylesSource();
styles.putNumberFormat(customDataFormat);
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/model/TestThemesTable.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/model/TestThemesTable.java?rev=1885318&r1=1885317&r2=1885318&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/model/TestThemesTable.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/model/TestThemesTable.java Sat Jan 9 20:19:07 2021
@@ -162,7 +162,7 @@ public class TestThemesTable {
* Note - Grey Row has an odd way of doing the styling...
*/
@Test
- public void themedAndNonThemedColours() throws IOException {
+ void themedAndNonThemedColours() throws IOException {
try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook(testFileComplex)) {
XSSFSheet sheet = wb.getSheetAt(0);
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/streaming/TestAutoSizeColumnTracker.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/streaming/TestAutoSizeColumnTracker.java?rev=1885318&r1=1885317&r2=1885318&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/streaming/TestAutoSizeColumnTracker.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/streaming/TestAutoSizeColumnTracker.java Sat Jan 9 20:19:07 2021
@@ -63,14 +63,14 @@ public class TestAutoSizeColumnTracker {
private final static String LONG_MESSAGE = "This is a test of a long message! This is a test of a long message!";
@BeforeEach
- public void setUpSheetAndWorkbook() {
+ void setUpSheetAndWorkbook() {
workbook = new SXSSFWorkbook();
sheet = workbook.createSheet();
tracker = new AutoSizeColumnTracker(sheet);
}
@AfterEach
- public void tearDownSheetAndWorkbook() throws IOException {
+ void tearDownSheetAndWorkbook() throws IOException {
if (sheet != null) {
sheet.dispose();
}
@@ -80,7 +80,7 @@ public class TestAutoSizeColumnTracker {
}
@Test
- public void trackAndUntrackColumn() {
+ void trackAndUntrackColumn() {
assumeTrue(tracker.getTrackedColumns().isEmpty());
tracker.trackColumn(0);
Set<Integer> expected = new HashSet<>();
@@ -91,7 +91,7 @@ public class TestAutoSizeColumnTracker {
}
@Test
- public void trackAndUntrackColumns() {
+ void trackAndUntrackColumns() {
assumeTrue(tracker.getTrackedColumns().isEmpty());
tracker.trackColumns(columns);
assertEquals(columns, tracker.getTrackedColumns());
@@ -108,14 +108,14 @@ public class TestAutoSizeColumnTracker {
}
@Test
- public void trackAndUntrackAllColumns() {
+ void trackAndUntrackAllColumns() {
createColumnsAndTrackThemAll();
tracker.untrackAllColumns();
assertTrue(tracker.getTrackedColumns().isEmpty());
}
@Test
- public void isColumnTracked() {
+ void isColumnTracked() {
assumeFalse(tracker.isColumnTracked(0));
tracker.trackColumn(0);
assertTrue(tracker.isColumnTracked(0));
@@ -124,7 +124,7 @@ public class TestAutoSizeColumnTracker {
}
@Test
- public void isColumnTrackedAndTrackAllColumns() {
+ void isColumnTrackedAndTrackAllColumns() {
createColumnsAndTrackThemAll();
tracker.untrackColumn(0);
SortedSet<Integer> _newColumns = new TreeSet<>();
@@ -136,7 +136,7 @@ public class TestAutoSizeColumnTracker {
}
@Test
- public void getTrackedColumns() {
+ void getTrackedColumns() {
assumeTrue(tracker.getTrackedColumns().isEmpty());
for (int column : columns) {
@@ -148,7 +148,7 @@ public class TestAutoSizeColumnTracker {
}
@Test
- public void isAllColumnsTracked() {
+ void isAllColumnsTracked() {
assertFalse(tracker.isAllColumnsTracked());
tracker.trackAllColumns();
assertTrue(tracker.isAllColumnsTracked());
@@ -157,7 +157,7 @@ public class TestAutoSizeColumnTracker {
}
@Test
- public void updateColumnWidths_and_getBestFitColumnWidth() {
+ void updateColumnWidths_and_getBestFitColumnWidth() {
tracker.trackAllColumns();
Row row1 = sheet.createRow(0);
Row row2 = sheet.createRow(1);
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/streaming/TestDeferredSXSSFWorkbook.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/streaming/TestDeferredSXSSFWorkbook.java?rev=1885318&r1=1885317&r2=1885318&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/streaming/TestDeferredSXSSFWorkbook.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/streaming/TestDeferredSXSSFWorkbook.java Sat Jan 9 20:19:07 2021
@@ -49,7 +49,7 @@ public final class TestDeferredSXSSFWork
}
@AfterEach
- public void tearDown() {
+ void tearDown() {
((DeferredSXSSFITestDataProvider) _testDataProvider).cleanup();
}
@@ -82,14 +82,14 @@ public final class TestDeferredSXSSFWork
@Override
@Disabled("DeferredSXSSF code disposes rows in a way that breaks this test")
- public void parentReferences() {}
+ protected void parentReferences() {}
@Override
@Disabled("DeferredSXSSF code disposes rows in a way that breaks this test")
- public void unicodeInAll() {}
+ protected void unicodeInAll() {}
@Test
- public void existingWorkbook() throws IOException {
+ void existingWorkbook() throws IOException {
XSSFWorkbook xssfWb1 = new XSSFWorkbook();
xssfWb1.createSheet("S1");
DeferredSXSSFWorkbook wb1 = new DeferredSXSSFWorkbook(xssfWb1);
@@ -110,7 +110,7 @@ public final class TestDeferredSXSSFWork
}
@Test
- public void addToExistingWorkbook() throws IOException {
+ void addToExistingWorkbook() throws IOException {
XSSFWorkbook xssfWb1 = new XSSFWorkbook();
xssfWb1.createSheet("S1");
Sheet sheet = xssfWb1.createSheet("S2");
@@ -189,7 +189,7 @@ public final class TestDeferredSXSSFWork
}
@Test
- public void sheetdataWriter() throws IOException {
+ void sheetdataWriter() throws IOException {
DeferredSXSSFWorkbook wb = new DeferredSXSSFWorkbook();
SXSSFSheet sh = wb.createSheet();
assertSame(sh.getClass(), DeferredSXSSFSheet.class);
@@ -199,7 +199,7 @@ public final class TestDeferredSXSSFWork
}
@Test
- public void removeSheet() throws IOException {
+ void removeSheet() throws IOException {
try (DeferredSXSSFWorkbook wb = new DeferredSXSSFWorkbook()) {
DeferredSXSSFSheet sheet1 = wb.createSheet("sheet1");
sheet1.setRowGenerator((sh) -> {
@@ -224,7 +224,7 @@ public final class TestDeferredSXSSFWork
}
@Test
- public void gzipSheetdataWriter() throws IOException {
+ void gzipSheetdataWriter() throws IOException {
DeferredSXSSFWorkbook wb = new DeferredSXSSFWorkbook();
final int rowNum = 1000;
@@ -255,7 +255,7 @@ public final class TestDeferredSXSSFWork
}
@Test
- public void workbookDispose() throws IOException {
+ void workbookDispose() throws IOException {
DeferredSXSSFWorkbook wb1 = new DeferredSXSSFWorkbook();
// the underlying writer is SheetDataWriter
assertWorkbookDispose(wb1);
@@ -304,7 +304,7 @@ public final class TestDeferredSXSSFWork
}
}
- public void changeSheetNameWithSharedFormulas() {
+ void changeSheetNameWithSharedFormulas() {
/* not implemented */
}
}
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/streaming/TestSXSSFCell.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/streaming/TestSXSSFCell.java?rev=1885318&r1=1885317&r2=1885318&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/streaming/TestSXSSFCell.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/streaming/TestSXSSFCell.java Sat Jan 9 20:19:07 2021
@@ -95,14 +95,14 @@ public class TestSXSSFCell extends BaseT
}
@Test
- public void getCachedFormulaResultType_throwsISE_whenNotAFormulaCell() {
+ void getCachedFormulaResultType_throwsISE_whenNotAFormulaCell() {
SXSSFCell instance = new SXSSFCell(null, CellType.BLANK);
assertThrows(IllegalStateException.class, instance::getCachedFormulaResultType);
}
@Test
- public void setCellValue_withTooLongRichTextString_throwsIAE() {
+ void setCellValue_withTooLongRichTextString_throwsIAE() {
Cell cell = spy(new SXSSFCell(null, CellType.BLANK));
int length = SpreadsheetVersion.EXCEL2007.getMaxTextLength() + 1;
String string = new String(new byte[length], StandardCharsets.UTF_8).replace("\0", "x");
@@ -111,21 +111,21 @@ public class TestSXSSFCell extends BaseT
}
@Test
- public void getArrayFormulaRange_returnsNull() {
+ void getArrayFormulaRange_returnsNull() {
Cell cell = new SXSSFCell(null, CellType.BLANK);
CellRangeAddress result = cell.getArrayFormulaRange();
assertNull(result);
}
@Test
- public void isPartOfArrayFormulaGroup_returnsFalse() {
+ void isPartOfArrayFormulaGroup_returnsFalse() {
Cell cell = new SXSSFCell(null, CellType.BLANK);
boolean result = cell.isPartOfArrayFormulaGroup();
assertFalse(result);
}
@Test
- public void getErrorCellValue_returns0_onABlankCell() {
+ void getErrorCellValue_returns0_onABlankCell() {
Cell cell = new SXSSFCell(null, CellType.BLANK);
assertEquals(CellType.BLANK, cell.getCellType());
byte result = cell.getErrorCellValue();
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/streaming/TestSXSSFEvaluationSheet.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/streaming/TestSXSSFEvaluationSheet.java?rev=1885318&r1=1885317&r2=1885318&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/streaming/TestSXSSFEvaluationSheet.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/streaming/TestSXSSFEvaluationSheet.java Sat Jan 9 20:19:07 2021
@@ -32,7 +32,7 @@ public class TestSXSSFEvaluationSheet ex
private List<Workbook> workbooksToClose = new ArrayList<>();
@AfterEach
- public void closeWorkbooks() throws IOException {
+ void closeWorkbooks() throws IOException {
for (Workbook workbook : workbooksToClose) {
workbook.close();
}
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/streaming/TestSXSSFHyperlink.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/streaming/TestSXSSFHyperlink.java?rev=1885318&r1=1885317&r2=1885318&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/streaming/TestSXSSFHyperlink.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/streaming/TestSXSSFHyperlink.java Sat Jan 9 20:19:07 2021
@@ -39,7 +39,7 @@ public class TestSXSSFHyperlink extends
@AfterEach
- public void tearDown(){
+ void tearDown(){
SXSSFITestDataProvider.instance.cleanup();
}
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/streaming/TestSXSSFRow.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/streaming/TestSXSSFRow.java?rev=1885318&r1=1885317&r2=1885318&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/streaming/TestSXSSFRow.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/streaming/TestSXSSFRow.java Sat Jan 9 20:19:07 2021
@@ -36,7 +36,7 @@ public final class TestSXSSFRow extends
@AfterEach
- public void tearDown() {
+ void tearDown() {
((SXSSFITestDataProvider) _testDataProvider).cleanup();
}
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/streaming/TestSXSSFSheet.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/streaming/TestSXSSFSheet.java?rev=1885318&r1=1885317&r2=1885318&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/streaming/TestSXSSFSheet.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/streaming/TestSXSSFSheet.java Sat Jan 9 20:19:07 2021
@@ -31,6 +31,7 @@ import org.apache.poi.ss.usermodel.Workb
import org.apache.poi.xssf.SXSSFITestDataProvider;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
@@ -42,7 +43,7 @@ public final class TestSXSSFSheet extend
@AfterEach
- public void tearDown(){
+ void tearDown(){
SXSSFITestDataProvider.instance.cleanup();
}
@@ -99,14 +100,14 @@ public final class TestSXSSFSheet extend
// properties on Cells...
}
+ @Disabled
@Override
- @Test
- public void defaultColumnStyle() {
+ protected void defaultColumnStyle() {
//TODO column styles are not yet supported by XSSF
}
@Test
- public void overrideFlushedRows() throws IOException {
+ void overrideFlushedRows() throws IOException {
try (Workbook wb = new SXSSFWorkbook(3)) {
Sheet sheet = wb.createSheet();
@@ -121,7 +122,7 @@ public final class TestSXSSFSheet extend
}
@Test
- public void overrideRowsInTemplate() throws IOException {
+ void overrideRowsInTemplate() throws IOException {
try (XSSFWorkbook template = new XSSFWorkbook()) {
template.createSheet().createRow(1);
try (Workbook wb = new SXSSFWorkbook(template);) {
@@ -139,7 +140,7 @@ public final class TestSXSSFSheet extend
}
@Test
- public void changeRowNum() throws IOException {
+ void changeRowNum() throws IOException {
SXSSFWorkbook wb = new SXSSFWorkbook(3);
SXSSFSheet sheet = wb.createSheet();
SXSSFRow row0 = sheet.createRow(0);
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/streaming/TestSXSSFSheetAutoSizeColumn.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/streaming/TestSXSSFSheetAutoSizeColumn.java?rev=1885318&r1=1885317&r2=1885318&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/streaming/TestSXSSFSheetAutoSizeColumn.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/streaming/TestSXSSFSheetAutoSizeColumn.java Sat Jan 9 20:19:07 2021
@@ -80,7 +80,7 @@ public class TestSXSSFSheetAutoSizeColum
}
@AfterEach
- public void tearDownSheetAndWorkbook() throws IOException {
+ void tearDownSheetAndWorkbook() throws IOException {
if (sheet != null) {
sheet.dispose();
}
@@ -215,7 +215,7 @@ public class TestSXSSFSheetAutoSizeColum
@ParameterizedTest
@MethodSource("data")
- public void autoSizeColumn_trackColumnForAutoSizing(boolean useMergedCells) {
+ void autoSizeColumn_trackColumnForAutoSizing(boolean useMergedCells) {
workbook = new SXSSFWorkbook();
sheet = workbook.createSheet();
sheet.trackColumnForAutoSizing(0);
@@ -231,7 +231,7 @@ public class TestSXSSFSheetAutoSizeColum
@ParameterizedTest
@MethodSource("data")
- public void autoSizeColumn_trackColumnsForAutoSizing(boolean useMergedCells) {
+ void autoSizeColumn_trackColumnsForAutoSizing(boolean useMergedCells) {
workbook = new SXSSFWorkbook();
sheet = workbook.createSheet();
@@ -248,7 +248,7 @@ public class TestSXSSFSheetAutoSizeColum
@ParameterizedTest
@MethodSource("data")
- public void autoSizeColumn_untrackColumnForAutoSizing(boolean useMergedCells) {
+ void autoSizeColumn_untrackColumnForAutoSizing(boolean useMergedCells) {
workbook = new SXSSFWorkbook();
sheet = workbook.createSheet();
@@ -265,7 +265,7 @@ public class TestSXSSFSheetAutoSizeColum
@ParameterizedTest
@MethodSource("data")
- public void autoSizeColumn_untrackColumnsForAutoSizing(boolean useMergedCells) {
+ void autoSizeColumn_untrackColumnsForAutoSizing(boolean useMergedCells) {
workbook = new SXSSFWorkbook();
sheet = workbook.createSheet();
@@ -282,7 +282,7 @@ public class TestSXSSFSheetAutoSizeColum
}
@Test
- public void autoSizeColumn_isColumnTrackedForAutoSizing() {
+ void autoSizeColumn_isColumnTrackedForAutoSizing() {
workbook = new SXSSFWorkbook();
sheet = workbook.createSheet();
@@ -297,7 +297,7 @@ public class TestSXSSFSheetAutoSizeColum
@ParameterizedTest
@MethodSource("data")
- public void autoSizeColumn_trackAllColumns(boolean useMergedCells) {
+ void autoSizeColumn_trackAllColumns(boolean useMergedCells) {
workbook = new SXSSFWorkbook();
sheet = workbook.createSheet();
@@ -311,7 +311,7 @@ public class TestSXSSFSheetAutoSizeColum
@ParameterizedTest
@MethodSource("data")
- public void autoSizeColumn_trackAllColumns_explicitUntrackColumn(boolean useMergedCells) {
+ void autoSizeColumn_trackAllColumns_explicitUntrackColumn(boolean useMergedCells) {
workbook = new SXSSFWorkbook();
sheet = workbook.createSheet();
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/streaming/TestSXSSFWorkbook.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/streaming/TestSXSSFWorkbook.java?rev=1885318&r1=1885317&r2=1885318&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/streaming/TestSXSSFWorkbook.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/streaming/TestSXSSFWorkbook.java Sat Jan 9 20:19:07 2021
@@ -63,7 +63,7 @@ public final class TestSXSSFWorkbook ext
}
@AfterEach
- public void tearDown(){
+ void tearDown(){
((SXSSFITestDataProvider)_testDataProvider).cleanup();
}
@@ -93,12 +93,11 @@ public final class TestSXSSFWorkbook ext
*/
@Override
@Disabled("SXSSF doesn't update formulas on sheet name changes, as most cells probably aren't in memory at the time")
- @Test
- public void setSheetName() {
+ protected void setSheetName() {
}
@Test
- public void existingWorkbook() throws IOException {
+ void existingWorkbook() throws IOException {
XSSFWorkbook xssfWb1 = new XSSFWorkbook();
xssfWb1.createSheet("S1");
SXSSFWorkbook wb1 = new SXSSFWorkbook(xssfWb1);
@@ -119,7 +118,7 @@ public final class TestSXSSFWorkbook ext
}
@Test
- public void useSharedStringsTable() throws Exception {
+ void useSharedStringsTable() throws Exception {
SXSSFWorkbook wb = new SXSSFWorkbook(null, 10, false, true);
SharedStringsTable sss = wb.getSharedStringSource();
@@ -157,7 +156,7 @@ public final class TestSXSSFWorkbook ext
}
@Test
- public void addToExistingWorkbook() throws IOException {
+ void addToExistingWorkbook() throws IOException {
XSSFWorkbook xssfWb1 = new XSSFWorkbook();
xssfWb1.createSheet("S1");
Sheet sheet = xssfWb1.createSheet("S2");
@@ -231,7 +230,7 @@ public final class TestSXSSFWorkbook ext
}
@Test
- public void sheetdataWriter() throws IOException{
+ void sheetdataWriter() throws IOException{
SXSSFWorkbook wb = new SXSSFWorkbook();
SXSSFSheet sh = wb.createSheet();
SheetDataWriter wr = sh.getSheetDataWriter();
@@ -266,7 +265,7 @@ public final class TestSXSSFWorkbook ext
}
@Test
- public void gzipSheetdataWriter() throws IOException {
+ void gzipSheetdataWriter() throws IOException {
SXSSFWorkbook wb = new SXSSFWorkbook();
wb.setCompressTempFiles(true);
@@ -332,7 +331,7 @@ public final class TestSXSSFWorkbook ext
}
@Test
- public void workbookDispose() throws IOException {
+ void workbookDispose() throws IOException {
SXSSFWorkbook wb1 = new SXSSFWorkbook();
// the underlying writer is SheetDataWriter
assertWorkbookDispose(wb1);
@@ -347,7 +346,7 @@ public final class TestSXSSFWorkbook ext
@Disabled("currently writing the same sheet multiple times is not supported...")
@Test
- public void bug53515() throws Exception {
+ void bug53515() throws Exception {
Workbook wb1 = new SXSSFWorkbook(10);
populateWorkbook(wb1);
saveTwice(wb1);
@@ -361,7 +360,7 @@ public final class TestSXSSFWorkbook ext
@Disabled("Crashes the JVM because of documented JVM behavior with concurrent writing/reading of zip-files, "
+ "see http://www.oracle.com/technetwork/java/javase/documentation/overview-156328.html")
@Test
- public void bug53515a() throws Exception {
+ void bug53515a() throws Exception {
File out = new File("Test.xlsx");
assertTrue(!out.exists() || out.delete());
for (int i = 0; i < 2; i++) {
@@ -420,7 +419,7 @@ public final class TestSXSSFWorkbook ext
}
@Test
- public void closeDoesNotModifyWorkbook() throws IOException {
+ void closeDoesNotModifyWorkbook() throws IOException {
final String filename = "SampleSS.xlsx";
final File file = POIDataSamples.getSpreadSheetInstance().getFile(filename);
@@ -487,7 +486,7 @@ public final class TestSXSSFWorkbook ext
*/
@Test
@Disabled
- public void createFromReadOnlyWorkbook() throws Exception {
+ void createFromReadOnlyWorkbook() throws Exception {
String sheetName = "Test SXSSF";
File input = XSSFTestDataSamples.getSampleFile("sample.xlsx");
@@ -534,7 +533,7 @@ public final class TestSXSSFWorkbook ext
wb.close();
}
- public void changeSheetNameWithSharedFormulas() {
+ void changeSheetNameWithSharedFormulas() {
/* not implemented */
}
}
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/streaming/TestSXSSFWorkbookWithCustomZipEntrySource.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/streaming/TestSXSSFWorkbookWithCustomZipEntrySource.java?rev=1885318&r1=1885317&r2=1885318&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/streaming/TestSXSSFWorkbookWithCustomZipEntrySource.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/streaming/TestSXSSFWorkbookWithCustomZipEntrySource.java Sat Jan 9 20:19:07 2021
@@ -19,10 +19,10 @@
package org.apache.poi.xssf.streaming;
+import static java.nio.charset.StandardCharsets.UTF_8;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
-import static java.nio.charset.StandardCharsets.UTF_8;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
@@ -31,7 +31,6 @@ import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
-import java.security.GeneralSecurityException;
import java.util.List;
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
@@ -58,7 +57,7 @@ public final class TestSXSSFWorkbookWith
// write an unencrypted workbook to disk, but any temporary files are encrypted
@Test
- public void customZipEntrySource() throws IOException {
+ void customZipEntrySource() throws IOException {
SXSSFWorkbookWithCustomZipEntrySource workbook = new SXSSFWorkbookWithCustomZipEntrySource();
SXSSFSheet sheet1 = workbook.createSheet(sheetName);
SXSSFRow row1 = sheet1.createRow(1);
@@ -79,7 +78,7 @@ public final class TestSXSSFWorkbookWith
// write an encrypted workbook to disk, and encrypt any temporary files as well
@Test
- public void customZipEntrySourceForWriteAndRead() throws IOException, GeneralSecurityException, InvalidFormatException {
+ void customZipEntrySourceForWriteAndRead() throws IOException, InvalidFormatException {
SXSSFWorkbookWithCustomZipEntrySource workbook = new SXSSFWorkbookWithCustomZipEntrySource();
SXSSFSheet sheet1 = workbook.createSheet(sheetName);
SXSSFRow row1 = sheet1.createRow(1);
@@ -106,7 +105,7 @@ public final class TestSXSSFWorkbookWith
}
@Test
- public void validateTempFilesAreEncrypted() throws IOException {
+ void validateTempFilesAreEncrypted() throws IOException {
TempFileRecordingSXSSFWorkbookWithCustomZipEntrySource workbook = new TempFileRecordingSXSSFWorkbookWithCustomZipEntrySource();
SXSSFSheet sheet1 = workbook.createSheet(sheetName);
SXSSFRow row1 = sheet1.createRow(1);
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/BaseTestXSSFPivotTable.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/BaseTestXSSFPivotTable.java?rev=1885318&r1=1885317&r2=1885318&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/BaseTestXSSFPivotTable.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/BaseTestXSSFPivotTable.java Sat Jan 9 20:19:07 2021
@@ -49,10 +49,10 @@ public abstract class BaseTestXSSFPivotT
* required to set up the test pivot tables and cell reference, either by name or reference.
*/
@BeforeEach
- public abstract void setUp();
+ protected abstract void setUp();
@AfterEach
- public void tearDown() throws IOException {
+ void tearDown() throws IOException {
if (wb != null) {
XSSFWorkbook wb2 = _testDataProvider.writeOutAndReadBack(wb);
wb.close();
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestFormulaEvaluatorOnXSSF.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestFormulaEvaluatorOnXSSF.java?rev=1885318&r1=1885317&r2=1885318&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestFormulaEvaluatorOnXSSF.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestFormulaEvaluatorOnXSSF.java Sat Jan 9 20:19:07 2021
@@ -168,7 +168,7 @@ public final class TestFormulaEvaluatorO
@ParameterizedTest
@MethodSource("data")
- public void processFunctionRow(String targetFunctionName, int formulasRowIdx, int expectedValuesRowIdx) {
+ void processFunctionRow(String targetFunctionName, int formulasRowIdx, int expectedValuesRowIdx) {
Row formulasRow = sheet.getRow(formulasRowIdx);
Row expectedValuesRow = sheet.getRow(expectedValuesRowIdx);
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestMatrixFormulasFromXMLSpreadsheet.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestMatrixFormulasFromXMLSpreadsheet.java?rev=1885318&r1=1885317&r2=1885318&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestMatrixFormulasFromXMLSpreadsheet.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestMatrixFormulasFromXMLSpreadsheet.java Sat Jan 9 20:19:07 2021
@@ -145,7 +145,7 @@ public final class TestMatrixFormulasFro
@ParameterizedTest
@MethodSource("data")
- public void processFunctionRow(String targetFunctionName, int formulasRowIdx) {
+ void processFunctionRow(String targetFunctionName, int formulasRowIdx) {
int endColNum = Navigator.START_RESULT_COL_INDEX + Navigator.COL_OFF_EXPECTED_RESULT;
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestMultiSheetFormulaEvaluatorOnXSSF.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestMultiSheetFormulaEvaluatorOnXSSF.java?rev=1885318&r1=1885317&r2=1885318&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestMultiSheetFormulaEvaluatorOnXSSF.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestMultiSheetFormulaEvaluatorOnXSSF.java Sat Jan 9 20:19:07 2021
@@ -153,7 +153,7 @@ public final class TestMultiSheetFormula
@ParameterizedTest
@MethodSource("data")
- public void processFunctionRow(String targetTestName, String targetFunctionName, int formulasRowIdx) {
+ void processFunctionRow(String targetTestName, String targetFunctionName, int formulasRowIdx) {
Row r = sheet.getRow(formulasRowIdx);
Cell expValue = r.getCell(SS.COLUMN_INDEX_EXPECTED_VALUE);
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestSXSSFBugs.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestSXSSFBugs.java?rev=1885318&r1=1885317&r2=1885318&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestSXSSFBugs.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestSXSSFBugs.java Sat Jan 9 20:19:07 2021
@@ -69,7 +69,7 @@ public final class TestSXSSFBugs extends
* any print settings that were there before
*/
@Test
- public void bug49253() throws Exception {
+ void bug49253() throws Exception {
Workbook wb1 = new SXSSFWorkbook();
Workbook wb2 = new SXSSFWorkbook();
CellRangeAddress cra = CellRangeAddress.valueOf("C2:D3");
@@ -122,7 +122,7 @@ public final class TestSXSSFBugs extends
}
@Test
- public void bug61648() throws Exception {
+ void bug61648() throws Exception {
// works as expected
writeWorkbook(new XSSFWorkbook(), XSSFITestDataProvider.instance);
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestUnfixedBugs.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestUnfixedBugs.java?rev=1885318&r1=1885317&r2=1885318&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestUnfixedBugs.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestUnfixedBugs.java Sat Jan 9 20:19:07 2021
@@ -310,7 +310,7 @@ public final class TestUnfixedBugs {
}
@Test
- public void bug57423_shiftRowsByLargeOffset() throws IOException {
+ void bug57423_shiftRowsByLargeOffset() throws IOException {
try (
XSSFWorkbook wb = new XSSFWorkbook()
//OutputStream out = new FileOutputStream("/tmp/57423." + wb.getClass().getName() + ".xlsx"));
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFBugs.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFBugs.java?rev=1885318&r1=1885317&r2=1885318&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFBugs.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFBugs.java Sat Jan 9 20:19:07 2021
@@ -143,7 +143,7 @@ public final class TestXSSFBugs extends
* the wrong sheet name
*/
@Test
- public void bug45430() throws IOException {
+ void bug45430() throws IOException {
try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("45430.xlsx")) {
assertFalse(wb.isMacroEnabled());
assertEquals(3, wb.getNumberOfNames());
@@ -175,7 +175,7 @@ public final class TestXSSFBugs extends
* We should carry vba macros over after save
*/
@Test
- public void bug45431() throws IOException, InvalidFormatException {
+ void bug45431() throws IOException, InvalidFormatException {
XSSFWorkbook wb1 = XSSFTestDataSamples.openSampleWorkbook("45431.xlsm");
OPCPackage pkg1 = wb1.getPackage();
assertTrue(wb1.isMacroEnabled());
@@ -230,7 +230,7 @@ public final class TestXSSFBugs extends
}
@Test
- public void bug47504() throws IOException {
+ void bug47504() throws IOException {
XSSFWorkbook wb1 = XSSFTestDataSamples.openSampleWorkbook("47504.xlsx");
assertEquals(1, wb1.getNumberOfSheets());
XSSFSheet sh = wb1.getSheetAt(0);
@@ -258,7 +258,7 @@ public final class TestXSSFBugs extends
* read the file despite the naughtiness
*/
@Test
- public void bug49020() throws IOException {
+ void bug49020() throws IOException {
try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("BrNotClosed.xlsx")) {
assertNotNull(wb);
}
@@ -268,7 +268,7 @@ public final class TestXSSFBugs extends
* ensure that CTPhoneticPr is loaded by the ooxml test suite so that it is included in poi-ooxml-lite
*/
@Test
- public void bug49325() throws IOException {
+ void bug49325() throws IOException {
try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("49325.xlsx")) {
CTWorksheet sh = wb.getSheetAt(0).getCTWorksheet();
assertNotNull(sh.getPhoneticPr());
@@ -280,7 +280,7 @@ public final class TestXSSFBugs extends
* should return that sheet index properly
*/
@Test
- public void bug48923() throws IOException {
+ void bug48923() throws IOException {
try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("48923.xlsx")) {
assertEquals(4, wb.getNumberOfNames());
@@ -324,7 +324,7 @@ public final class TestXSSFBugs extends
* TODO: delete this test case when MROUND and VAR are implemented
*/
@Test
- public void bug48539() throws IOException {
+ void bug48539() throws IOException {
try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("48539.xlsx")) {
assertEquals(3, wb.getNumberOfSheets());
assertEquals(0, wb.getNumberOfNames());
@@ -361,7 +361,7 @@ public final class TestXSSFBugs extends
* a theme is used
*/
@Test
- public void bug48779() throws IOException {
+ void bug48779() throws IOException {
try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("48779.xlsx")) {
XSSFCell cell = wb.getSheetAt(0).getRow(0).getCell(0);
XSSFCellStyle cs = cell.getCellStyle();
@@ -399,7 +399,7 @@ public final class TestXSSFBugs extends
* for integers
*/
@Test
- public void bug47490() throws IOException {
+ void bug47490() throws IOException {
try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("GeneralFormatTests.xlsx")) {
Sheet s = wb.getSheetAt(1);
Row r;
@@ -437,7 +437,7 @@ public final class TestXSSFBugs extends
* The OPC spec tolerates both of these peculiarities, so does POI
*/
@Test
- public void bug49609() throws IOException {
+ void bug49609() throws IOException {
try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("49609.xlsx")) {
assertEquals("FAM", wb.getSheetName(0));
assertEquals("Cycle", wb.getSheetAt(0).getRow(0).getCell(1).getStringCellValue());
@@ -446,7 +446,7 @@ public final class TestXSSFBugs extends
}
@Test
- public void bug49783() throws IOException {
+ void bug49783() throws IOException {
try (Workbook wb = XSSFTestDataSamples.openSampleWorkbook("49783.xlsx")) {
Sheet sheet = wb.getSheetAt(0);
FormulaEvaluator evaluator = wb.getCreationHelper().createFormulaEvaluator();
@@ -479,7 +479,7 @@ public final class TestXSSFBugs extends
* with something like "helloworld" !
*/
@Test
- public void bug49941() throws IOException {
+ void bug49941() throws IOException {
XSSFWorkbook wb1 = new XSSFWorkbook();
XSSFSheet s = wb1.createSheet();
XSSFRow r = s.createRow(0);
@@ -558,7 +558,7 @@ public final class TestXSSFBugs extends
* Repeatedly writing the same file which has styles
*/
@Test
- public void bug49940() throws IOException {
+ void bug49940() throws IOException {
try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("styles.xlsx")) {
assertEquals(3, wb.getNumberOfSheets());
assertEquals(10, wb.getStylesSource().getNumCellStyles());
@@ -587,7 +587,7 @@ public final class TestXSSFBugs extends
* entry.
*/
@Test
- public void bug49966() throws IOException {
+ void bug49966() throws IOException {
try (XSSFWorkbook wb1 = XSSFTestDataSamples
.openSampleWorkbook("shared_formulas.xlsx")) {
XSSFSheet sheet = wb1.getSheetAt(0);
@@ -644,7 +644,7 @@ public final class TestXSSFBugs extends
}
@Test
- public void bug49966Row() throws IOException {
+ void bug49966Row() throws IOException {
try (XSSFWorkbook wb = XSSFTestDataSamples
.openSampleWorkbook("shared_formulas.xlsx")) {
XSSFSheet sheet = wb.getSheetAt(0);
@@ -663,7 +663,7 @@ public final class TestXSSFBugs extends
}
@Test
- public void bug49156() throws IOException {
+ void bug49156() throws IOException {
try (Workbook wb = XSSFTestDataSamples.openSampleWorkbook("49156.xlsx")) {
FormulaEvaluator formulaEvaluator = wb.getCreationHelper().createFormulaEvaluator();
@@ -682,7 +682,7 @@ public final class TestXSSFBugs extends
* Newlines are valid characters in a formula
*/
@Test
- public void bug50440And51875() throws IOException {
+ void bug50440And51875() throws IOException {
try (Workbook wb = XSSFTestDataSamples.openSampleWorkbook("NewlineInFormulas.xlsx")) {
Sheet s = wb.getSheetAt(0);
Cell c = s.getRow(0).getCell(0);
@@ -708,7 +708,7 @@ public final class TestXSSFBugs extends
* Moving a cell comment from one cell to another
*/
@Test
- public void bug50795() throws IOException {
+ void bug50795() throws IOException {
XSSFWorkbook wb1 = XSSFTestDataSamples.openSampleWorkbook("50795.xlsx");
XSSFSheet sheet = wb1.getSheetAt(0);
XSSFRow row = sheet.getRow(0);
@@ -770,7 +770,7 @@ public final class TestXSSFBugs extends
* For those cases, ensure we don't break on reading the colour
*/
@Test
- public void bug50299() throws IOException {
+ void bug50299() throws IOException {
try (Workbook wb = XSSFTestDataSamples.openSampleWorkbook("50299.xlsx")) {
// Check all the colours
@@ -801,7 +801,7 @@ public final class TestXSSFBugs extends
* Excel .xls style indexed colours in a .xlsx file
*/
@Test
- public void bug50786() throws IOException {
+ void bug50786() throws IOException {
try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("50786-indexed_colours.xlsx")) {
XSSFSheet s = wb.getSheetAt(0);
XSSFRow r = s.getRow(2);
@@ -824,7 +824,7 @@ public final class TestXSSFBugs extends
* should still be able to get colours
*/
@Test
- public void bug50846() throws IOException {
+ void bug50846() throws IOException {
try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("50846-border_colours.xlsx")) {
XSSFSheet sheet = wb.getSheetAt(0);
@@ -854,7 +854,7 @@ public final class TestXSSFBugs extends
* fetching of the RGB.
*/
@Test
- public void bug50784() throws IOException {
+ void bug50784() throws IOException {
try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("50784-font_theme_colours.xlsx")) {
XSSFSheet s = wb.getSheetAt(0);
XSSFRow r = s.getRow(0);
@@ -885,7 +885,7 @@ public final class TestXSSFBugs extends
* a rich text string
*/
@Test
- public void bug48877() throws IOException {
+ void bug48877() throws IOException {
String text = "Use \n with word wrap on to create a new line.\n" +
"This line finishes with two trailing spaces. ";
@@ -958,7 +958,7 @@ public final class TestXSSFBugs extends
* Adding sheets when one has a table, then re-ordering
*/
@Test
- public void bug50867() throws IOException {
+ void bug50867() throws IOException {
XSSFWorkbook wb1 = XSSFTestDataSamples.openSampleWorkbook("50867_with_table.xlsx");
assertEquals(3, wb1.getNumberOfSheets());
@@ -1079,7 +1079,7 @@ public final class TestXSSFBugs extends
* any print settings that were there before
*/
@Test
- public void bug49253() throws IOException {
+ void bug49253() throws IOException {
XSSFWorkbook wb1 = new XSSFWorkbook();
XSSFWorkbook wb2 = new XSSFWorkbook();
CellRangeAddress cra = CellRangeAddress.valueOf("C2:D3");
@@ -1125,7 +1125,7 @@ public final class TestXSSFBugs extends
* Default Column style
*/
@Test
- public void bug51037() throws IOException {
+ void bug51037() throws IOException {
XSSFWorkbook wb = new XSSFWorkbook();
XSSFSheet s = wb.createSheet();
@@ -1204,7 +1204,7 @@ public final class TestXSSFBugs extends
* Something with the SharedStringsTable currently breaks...
*/
@Test
- public void bug46662() throws IOException {
+ void bug46662() throws IOException {
// New file
XSSFWorkbook wb1 = new XSSFWorkbook();
XSSFTestDataSamples.writeOutAndReadBack(wb1).close();
@@ -1227,7 +1227,7 @@ public final class TestXSSFBugs extends
* Colours and styles when the list has gaps in it
*/
@Test
- public void bug51222() throws IOException {
+ void bug51222() throws IOException {
try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("51222.xlsx")) {
XSSFSheet s = wb.getSheetAt(0);
@@ -1267,7 +1267,7 @@ public final class TestXSSFBugs extends
}
@Test
- public void bug51470() throws IOException {
+ void bug51470() throws IOException {
try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("51470.xlsx")) {
XSSFSheet sh0 = wb.getSheetAt(0);
XSSFSheet sh1 = wb.cloneSheet(0);
@@ -1293,7 +1293,7 @@ public final class TestXSSFBugs extends
* comments (so /xl/comments1.xml is taken)
*/
@Test
- public void bug51850() throws IOException {
+ void bug51850() throws IOException {
XSSFWorkbook wb1 = XSSFTestDataSamples.openSampleWorkbook("51850.xlsx");
XSSFSheet sh1 = wb1.getSheetAt(0);
XSSFSheet sh2 = wb1.getSheetAt(1);
@@ -1358,7 +1358,7 @@ public final class TestXSSFBugs extends
* Sheet names with a , in them
*/
@Test
- public void bug51963() throws IOException {
+ void bug51963() throws IOException {
try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("51963.xlsx")) {
Sheet sheet = wb.getSheetAt(0);
assertEquals("Abc,1", sheet.getSheetName());
@@ -1379,7 +1379,7 @@ public final class TestXSSFBugs extends
* eg =SUM($Sheet1.C1:$Sheet4.C1)
*/
@Test
- public void bug48703() throws IOException {
+ void bug48703() throws IOException {
try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("48703.xlsx")) {
XSSFSheet sheet = wb.getSheetAt(0);
@@ -1409,7 +1409,7 @@ public final class TestXSSFBugs extends
* Bugzilla 51710: problems reading shared formuals from .xlsx
*/
@Test
- public void bug51710() throws IOException {
+ void bug51710() throws IOException {
try (Workbook wb = XSSFTestDataSamples.openSampleWorkbook("51710.xlsx")) {
final String[] columns = {"A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N"};
@@ -1441,7 +1441,7 @@ public final class TestXSSFBugs extends
* Bug 53101:
*/
@Test
- public void bug5301() throws IOException {
+ void bug5301() throws IOException {
try (Workbook wb = XSSFTestDataSamples.openSampleWorkbook("53101.xlsx")) {
FormulaEvaluator evaluator =
wb.getCreationHelper().createFormulaEvaluator();
@@ -1462,7 +1462,7 @@ public final class TestXSSFBugs extends
}
@Test
- public void bug54436() throws IOException {
+ void bug54436() throws IOException {
try (Workbook wb = XSSFTestDataSamples.openSampleWorkbook("54436.xlsx")) {
if (!WorkbookEvaluator.getSupportedFunctionNames().contains("GETPIVOTDATA")) {
Function func = (args, srcRowIndex, srcColumnIndex) -> ErrorEval.NA;
@@ -1478,7 +1478,7 @@ public final class TestXSSFBugs extends
* when opened via WorkbookFactory, so there's no EncryptedDocumentException thrown anymore
*/
@Test
- public void bug55692_poifs() throws IOException {
+ void bug55692_poifs() throws IOException {
// Via a POIFSFileSystem
try (POIFSFileSystem fsP = new POIFSFileSystem(
POIDataSamples.getPOIFSInstance().openResourceAsStream("protect.xlsx"))) {
@@ -1487,7 +1487,7 @@ public final class TestXSSFBugs extends
}
@Test
- public void bug55692_stream() throws IOException {
+ void bug55692_stream() throws IOException {
// Directly on a Stream, will go via POIFS and spot it's
// actually a .xlsx file encrypted with the default password, and open
try (Workbook wb = WorkbookFactory.create(
@@ -1498,7 +1498,7 @@ public final class TestXSSFBugs extends
}
@Test
- public void bug55692_poifs2() throws IOException {
+ void bug55692_poifs2() throws IOException {
// Via a POIFSFileSystem, will spot it's actually a .xlsx file
// encrypted with the default password, and open
try (POIFSFileSystem fsNP = new POIFSFileSystem(
@@ -1511,7 +1511,7 @@ public final class TestXSSFBugs extends
}
@Test
- public void bug53282() throws IOException {
+ void bug53282() throws IOException {
try (Workbook wb = XSSFTestDataSamples.openSampleWorkbook("53282b.xlsx")) {
Cell c = wb.getSheetAt(0).getRow(1).getCell(0);
assertEquals("#@_#", c.getStringCellValue());
@@ -1525,7 +1525,7 @@ public final class TestXSSFBugs extends
* due to a lack of Styles Table
*/
@Test
- public void bug56278() throws IOException {
+ void bug56278() throws IOException {
try (Workbook wb = XSSFTestDataSamples.openSampleWorkbook("56278.xlsx")) {
assertEquals(0, wb.getSheetIndex("Market Rates"));
@@ -1537,7 +1537,7 @@ public final class TestXSSFBugs extends
}
@Test
- public void bug56315() throws IOException {
+ void bug56315() throws IOException {
try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("56315.xlsx")) {
Cell c = wb.getSheetAt(0).getRow(1).getCell(0);
CellValue cv = wb.getCreationHelper().createFormulaEvaluator().evaluate(c);
@@ -1547,7 +1547,7 @@ public final class TestXSSFBugs extends
}
@Test
- public void bug56468() throws IOException, InterruptedException {
+ void bug56468() throws IOException, InterruptedException {
try (XSSFWorkbook wb = new XSSFWorkbook()) {
XSSFSheet sheet = wb.createSheet();
XSSFRow row = sheet.createRow(0);
@@ -1580,7 +1580,7 @@ public final class TestXSSFBugs extends
* cell format of "yyyy-MM-ddTHH:mm:ss"
*/
@Test
- public void bug54034() throws IOException {
+ void bug54034() throws IOException {
TimeZone tz = LocaleUtil.getUserTimeZone();
LocaleUtil.setUserTimeZone(TimeZone.getTimeZone("CET"));
try {
@@ -1693,7 +1693,7 @@ public final class TestXSSFBugs extends
* with DataFormatter
*/
@Test
- public void bug56702() throws IOException {
+ void bug56702() throws IOException {
try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("56702.xlsx")) {
Sheet sheet = wb.getSheetAt(0);
@@ -1722,7 +1722,7 @@ public final class TestXSSFBugs extends
* org.apache.poi.ss.formula.FormulaParseException: Parse error near char 0 '[' in specified formula '[0]!NR_Global_B2'. Expected number, string, or defined name
*/
@Test
- public void bug56737() throws IOException {
+ void bug56737() throws IOException {
try (Workbook wb = XSSFTestDataSamples.openSampleWorkbook("56737.xlsx")) {
// Check the named range definitions
@@ -1866,7 +1866,7 @@ public final class TestXSSFBugs extends
* function in another file
*/
@Test
- public void bug56502() throws IOException {
+ void bug56502() throws IOException {
try (Workbook wb = XSSFTestDataSamples.openSampleWorkbook("56502.xlsx")) {
Sheet sheet = wb.getSheetAt(0);
@@ -1887,7 +1887,7 @@ public final class TestXSSFBugs extends
}
@Test
- public void bug54764() throws IOException, OpenXML4JException, XmlException {
+ void bug54764() throws IOException, OpenXML4JException, XmlException {
try (OPCPackage pkg = XSSFTestDataSamples.openSamplePackage("54764.xlsx")) {
// Check the core properties - will be found but empty, due
// to the expansion being too much to be considered valid
@@ -1940,7 +1940,7 @@ public final class TestXSSFBugs extends
* poi-ooxml-lite jar
*/
@Test
- public void bug57176() throws IOException {
+ void bug57176() throws IOException {
try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("57176.xlsx")) {
CTDefinedNames definedNames = wb.getCTWorkbook().getDefinedNames();
List<CTDefinedName> definedNameList = definedNames.getDefinedNameList();
@@ -1957,7 +1957,7 @@ public final class TestXSSFBugs extends
* error message if given one
*/
@Test
- public void bug56800_xlsb() throws IOException {
+ void bug56800_xlsb() throws IOException {
// Can be opened at the OPC level
try (OPCPackage pkg = XSSFTestDataSamples.openSamplePackage("Simple.xlsb")) {
// XSSF Workbook gives helpful error
@@ -2110,7 +2110,7 @@ public final class TestXSSFBugs extends
*/
@ParameterizedTest
@EnumSource(value = PackageAccess.class, names = {"READ_WRITE", "READ"})
- public void bug57482(PackageAccess access) throws IOException, InvalidFormatException {
+ void bug57482(PackageAccess access) throws IOException, InvalidFormatException {
File file = HSSFTestDataSamples.getSampleFile("57482-OnlyNumeric.xlsx");
try (OPCPackage pkg = OPCPackage.open(file, access);
XSSFWorkbook wb1 = new XSSFWorkbook(pkg)) {
@@ -2159,7 +2159,7 @@ public final class TestXSSFBugs extends
* "Unknown error type: -60" fetching formula error value
*/
@Test
- public void bug57535() throws IOException {
+ void bug57535() throws IOException {
try (Workbook wb = XSSFTestDataSamples.openSampleWorkbook("57535.xlsx")) {
FormulaEvaluator evaluator = wb.getCreationHelper().createFormulaEvaluator();
evaluator.clearAllCachedResultValues();
@@ -2410,7 +2410,7 @@ public final class TestXSSFBugs extends
}
@Test
- public void bug57642() throws IOException {
+ void bug57642() throws IOException {
XSSFWorkbook wb = new XSSFWorkbook();
XSSFSheet s = wb.createSheet("TestSheet");
XSSFCell c = s.createRow(0).createCell(0);
@@ -2432,7 +2432,7 @@ public final class TestXSSFBugs extends
* 32,767 must not be -32,768, then -32,767, -32,766
*/
@Test
- public void bug57880() throws IOException {
+ void bug57880() throws IOException {
int numStyles = 33000;
XSSFWorkbook wb = new XSSFWorkbook();
for (int i = 1; i < numStyles; i++) {
@@ -2549,14 +2549,14 @@ public final class TestXSSFBugs extends
* Excel 2007 generated Macro-Enabled .xlsm file
*/
@Test
- public void bug57181() throws IOException {
+ void bug57181() throws IOException {
try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("57181.xlsm")) {
assertEquals(9, wb.getNumberOfSheets());
}
}
@Test
- public void bug52111() throws IOException {
+ void bug52111() throws IOException {
try (Workbook wb = XSSFTestDataSamples.openSampleWorkbook("Intersection-52111-xssf.xlsx")) {
Sheet s = wb.getSheetAt(0);
assertFormula(wb, s.getRow(2).getCell(0), "(C2:D3 D3:E4)", "4.0");
@@ -2991,7 +2991,7 @@ public final class TestXSSFBugs extends
* to include the row number on the row tags
*/
@Test
- public void noRowNumbers59746() throws IOException {
+ void noRowNumbers59746() throws IOException {
try (Workbook wb = XSSFTestDataSamples.openSampleWorkbook("59746_NoRowNums.xlsx")) {
Sheet sheet = wb.getSheetAt(0);
assertTrue(sheet.getLastRowNum() > 20, "Last row num: " + sheet.getLastRowNum());
@@ -3064,7 +3064,7 @@ public final class TestXSSFBugs extends
* part with a part number)
*/
@Test
- public void drawingNumbersAlreadyTaken_60255() throws IOException {
+ void drawingNumbersAlreadyTaken_60255() throws IOException {
try (Workbook wb = XSSFTestDataSamples.openSampleWorkbook("60255_extra_drawingparts.xlsx")) {
assertEquals(4, wb.getNumberOfSheets());
@@ -3148,7 +3148,7 @@ public final class TestXSSFBugs extends
}
@Test
- public void bug61063() throws Exception {
+ void bug61063() throws Exception {
try (Workbook wb = XSSFTestDataSamples.openSampleWorkbook("61063.xlsx")) {
FormulaEvaluator eval = wb.getCreationHelper().createFormulaEvaluator();
@@ -3165,7 +3165,7 @@ public final class TestXSSFBugs extends
}
@Test
- public void bug61516() throws IOException {
+ void bug61516() throws IOException {
final String initialFormula = "A1";
final String expectedFormula = "#REF!"; // from ms excel
@@ -3367,7 +3367,7 @@ public final class TestXSSFBugs extends
@Test
- public void bug63371() throws IOException {
+ void bug63371() throws IOException {
try (XSSFWorkbook wb = new XSSFWorkbook()) {
XSSFSheet sheet = wb.createSheet();
@@ -3398,7 +3398,7 @@ public final class TestXSSFBugs extends
}
@Test
- public void bug60397() throws IOException {
+ void bug60397() throws IOException {
try (XSSFWorkbook wb = new XSSFWorkbook()) {
XSSFSheet sheet = wb.createSheet();
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFCell.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFCell.java?rev=1885318&r1=1885317&r2=1885318&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFCell.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFCell.java Sat Jan 9 20:19:07 2021
@@ -750,7 +750,7 @@ public final class TestXSSFCell extends
}
@Test
- public void getErrorCellValue_returns0_onABlankCell() {
+ void getErrorCellValue_returns0_onABlankCell() {
Cell cell = new XSSFWorkbook().createSheet().createRow(0).createCell(0);
assertThrows(IllegalStateException.class, cell::getErrorCellValue);
}
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFCellStyle.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFCellStyle.java?rev=1885318&r1=1885317&r2=1885318&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFCellStyle.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFCellStyle.java Sat Jan 9 20:19:07 2021
@@ -64,7 +64,7 @@ public class TestXSSFCellStyle {
private XSSFCellStyle cellStyle;
@BeforeEach
- public void setUp() {
+ void setUp() {
stylesTable = new StylesTable();
CTStylesheet ctStylesheet = stylesTable.getCTStylesheet();
@@ -1068,7 +1068,7 @@ public class TestXSSFCellStyle {
}
@Test
- public void bug58996_UsedToWorkIn3_11_ButNotIn3_13() throws IOException {
+ void bug58996_UsedToWorkIn3_11_ButNotIn3_13() throws IOException {
XSSFWorkbook workbook = new XSSFWorkbook();
XSSFCellStyle cellStyle = workbook.createCellStyle();
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFComment.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFComment.java?rev=1885318&r1=1885317&r2=1885318&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFComment.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFComment.java Sat Jan 9 20:19:07 2021
@@ -69,7 +69,7 @@ public final class TestXSSFComment exten
* test properties of a newly constructed comment
*/
@Test
- public void constructor() {
+ void constructor() {
CommentsTable sheetComments = new CommentsTable();
assertNotNull(sheetComments.getCTComments().getCommentList());
assertNotNull(sheetComments.getCTComments().getAuthors());
@@ -88,7 +88,7 @@ public final class TestXSSFComment exten
}
@Test
- public void getSetCol() {
+ void getSetCol() {
CommentsTable sheetComments = new CommentsTable();
XSSFVMLDrawing vml = new XSSFVMLDrawing();
CTComment ctComment = sheetComments.newComment(CellAddress.A1);
@@ -107,7 +107,7 @@ public final class TestXSSFComment exten
}
@Test
- public void getSetRow() {
+ void getSetRow() {
CommentsTable sheetComments = new CommentsTable();
XSSFVMLDrawing vml = new XSSFVMLDrawing();
CTComment ctComment = sheetComments.newComment(CellAddress.A1);
@@ -126,7 +126,7 @@ public final class TestXSSFComment exten
}
@Test
- public void setString() {
+ void setString() {
XSSFWorkbook wb = new XSSFWorkbook();
XSSFSheet sh = wb.createSheet();
XSSFComment comment = sh.createDrawingPatriarch().createCellComment(new XSSFClientAnchor());
@@ -177,7 +177,7 @@ public final class TestXSSFComment exten
}
@Test
- public void author() {
+ void author() {
CommentsTable sheetComments = new CommentsTable();
CTComment ctComment = sheetComments.newComment(CellAddress.A1);
@@ -338,7 +338,7 @@ public final class TestXSSFComment exten
}
@Test
- public void bug57838DeleteRowsWthCommentsBug() throws IOException {
+ void bug57838DeleteRowsWthCommentsBug() throws IOException {
Workbook wb = XSSFTestDataSamples.openSampleWorkbook("57838.xlsx");
Sheet sheet=wb.getSheetAt(0);
Comment comment1 = sheet.getCellComment(new CellAddress(2, 1));
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFDataValidationConstraint.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFDataValidationConstraint.java?rev=1885318&r1=1885317&r2=1885318&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFDataValidationConstraint.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFDataValidationConstraint.java Sat Jan 9 20:19:07 2021
@@ -35,7 +35,7 @@ public class TestXSSFDataValidationConst
// See bug 59719
@Test
- public void listLiteralsQuotesAreStripped_formulaConstructor() {
+ void listLiteralsQuotesAreStripped_formulaConstructor() {
// literal list, using formula constructor
String literal = "\"one, two, three\"";
String[] expected = new String[] { "one", "two", "three" };
@@ -47,7 +47,7 @@ public class TestXSSFDataValidationConst
}
@Test
- public void listLiteralsQuotesAreStripped_arrayConstructor() {
+ void listLiteralsQuotesAreStripped_arrayConstructor() {
// literal list, using array constructor
String literal = "\"one, two, three\"";
String[] expected = new String[] { "one", "two", "three" };
@@ -58,13 +58,13 @@ public class TestXSSFDataValidationConst
}
@Test
- public void listLiteralsGreaterThan255CharactersThrows() {
+ void listLiteralsGreaterThan255CharactersThrows() {
String[] literal = IntStream.range(0, 129).mapToObj(i -> "a").toArray(String[]::new);
assertThrows(IllegalArgumentException.class, () -> new XSSFDataValidationConstraint(literal));
}
@Test
- public void dataValidationListLiteralTooLongFromFile() throws IOException {
+ void dataValidationListLiteralTooLongFromFile() throws IOException {
try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("DataValidationListTooLong.xlsx")) {
XSSFFormulaEvaluator fEval = wb.getCreationHelper().createFormulaEvaluator();
DataValidationEvaluator dvEval = new DataValidationEvaluator(wb, fEval);
@@ -73,7 +73,7 @@ public class TestXSSFDataValidationConst
}
@Test
- public void rangeReference() {
+ void rangeReference() {
// (unnamed range) reference list
String reference = "A1:A5";
DataValidationConstraint constraint = new XSSFDataValidationConstraint(listType, ignoredType, reference, null);
@@ -82,7 +82,7 @@ public class TestXSSFDataValidationConst
}
@Test
- public void namedRangeReference() {
+ void namedRangeReference() {
// named range list
String namedRange = "MyNamedRange";
DataValidationConstraint constraint = new XSSFDataValidationConstraint(listType, ignoredType, namedRange, null);
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFDrawing.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFDrawing.java?rev=1885318&r1=1885317&r2=1885318&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFDrawing.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFDrawing.java Sat Jan 9 20:19:07 2021
@@ -41,7 +41,7 @@ import static org.junit.jupiter.api.Asse
public class TestXSSFDrawing {
@Test
- public void bug54803() throws Exception {
+ void bug54803() throws Exception {
try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("bug54803.xlsx")) {
XSSFSheet sheet = wb.getSheetAt(0);
sheet.createDrawingPatriarch();
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFEvenFooter.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFEvenFooter.java?rev=1885318&r1=1885317&r2=1885318&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFEvenFooter.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFEvenFooter.java Sat Jan 9 20:19:07 2021
@@ -29,13 +29,13 @@ public class TestXSSFEvenFooter {
private XSSFSheet sheet;
@BeforeEach
- public void before() {
+ void before() {
wb = new XSSFWorkbook();
sheet = wb.createSheet();
}
@AfterEach
- public void after() throws Exception {
+ void after() throws Exception {
wb.close();
}
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFEvenHeader.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFEvenHeader.java?rev=1885318&r1=1885317&r2=1885318&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFEvenHeader.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFEvenHeader.java Sat Jan 9 20:19:07 2021
@@ -29,13 +29,13 @@ public class TestXSSFEvenHeader {
private XSSFSheet sheet;
@BeforeEach
- public void before() {
+ void before() {
wb = new XSSFWorkbook();
sheet = wb.createSheet();
}
@AfterEach
- public void after() throws Exception {
+ void after() throws Exception {
wb.close();
}
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFFirstFooter.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFFirstFooter.java?rev=1885318&r1=1885317&r2=1885318&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFFirstFooter.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFFirstFooter.java Sat Jan 9 20:19:07 2021
@@ -29,13 +29,13 @@ public class TestXSSFFirstFooter {
private XSSFSheet sheet;
@BeforeEach
- public void before() {
+ void before() {
wb = new XSSFWorkbook();
sheet = wb.createSheet();
}
@AfterEach
- public void after() throws Exception {
+ void after() throws Exception {
wb.close();
}
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFFirstHeader.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFFirstHeader.java?rev=1885318&r1=1885317&r2=1885318&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFFirstHeader.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFFirstHeader.java Sat Jan 9 20:19:07 2021
@@ -29,13 +29,13 @@ public class TestXSSFFirstHeader {
private XSSFSheet sheet;
@BeforeEach
- public void before() {
+ void before() {
wb = new XSSFWorkbook();
sheet = wb.createSheet();
}
@AfterEach
- public void after() throws Exception {
+ void after() throws Exception {
wb.close();
}
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFFormulaEvaluation.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFFormulaEvaluation.java?rev=1885318&r1=1885317&r2=1885318&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFFormulaEvaluation.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFFormulaEvaluation.java Sat Jan 9 20:19:07 2021
@@ -357,7 +357,7 @@ public final class TestXSSFFormulaEvalua
// Takes over a minute to evaluate all formulas in this large workbook. Run this test when profiling for formula evaluation speed.
// , "StructuredRefs-lots-with-lookups.xlsx"
})
- public void verifyAllFormulasInWorkbookCanBeEvaluated(String sampleWorkbook) throws IOException {
+ void verifyAllFormulasInWorkbookCanBeEvaluated(String sampleWorkbook) throws IOException {
try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook(sampleWorkbook)) {
assertDoesNotThrow(() -> XSSFFormulaEvaluator.evaluateAllFormulaCells(wb));
}
@@ -381,7 +381,7 @@ public final class TestXSSFFormulaEvalua
}
@Test
- public void evaluateInCellReturnsSameDataType() throws IOException {
+ void evaluateInCellReturnsSameDataType() throws IOException {
try (XSSFWorkbook wb = new XSSFWorkbook()) {
wb.createSheet().createRow(0).createCell(0);
XSSFFormulaEvaluator evaluator = wb.getCreationHelper().createFormulaEvaluator();
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFFormulaParser.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFFormulaParser.java?rev=1885318&r1=1885317&r2=1885318&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFFormulaParser.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFFormulaParser.java Sat Jan 9 20:19:07 2021
@@ -74,7 +74,7 @@ public final class TestXSSFFormulaParser
}
@Test
- public void basicParsing() throws IOException {
+ void basicParsing() throws IOException {
XSSFWorkbook wb = new XSSFWorkbook();
XSSFEvaluationWorkbook fpb = XSSFEvaluationWorkbook.create(wb);
Ptg[] ptgs;
@@ -144,7 +144,7 @@ public final class TestXSSFFormulaParser
}
@Test
- public void builtInFormulas() throws IOException {
+ void builtInFormulas() throws IOException {
XSSFWorkbook wb = new XSSFWorkbook();
XSSFEvaluationWorkbook fpb = XSSFEvaluationWorkbook.create(wb);
Ptg[] ptgs;
@@ -162,7 +162,7 @@ public final class TestXSSFFormulaParser
}
@Test
- public void formulaReferencesSameWorkbook() throws IOException {
+ void formulaReferencesSameWorkbook() throws IOException {
// Use a test file with "other workbook" style references
// to itself
XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("56737.xlsx");
@@ -183,7 +183,7 @@ public final class TestXSSFFormulaParser
}
@Test
- public void formulaReferencesOtherSheets() throws IOException {
+ void formulaReferencesOtherSheets() throws IOException {
// Use a test file with the named ranges in place
XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("56737.xlsx");
XSSFEvaluationWorkbook fpb = XSSFEvaluationWorkbook.create(wb);
@@ -225,7 +225,7 @@ public final class TestXSSFFormulaParser
}
@Test
- public void formulaReferencesOtherWorkbook() throws IOException {
+ void formulaReferencesOtherWorkbook() throws IOException {
// Use a test file with the external linked table in place
XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("ref-56737.xlsx");
XSSFEvaluationWorkbook fpb = XSSFEvaluationWorkbook.create(wb);
@@ -272,7 +272,7 @@ public final class TestXSSFFormulaParser
* (but not evaluate - that's elsewhere in the test suite)
*/
@Test
- public void multiSheetReferencesHSSFandXSSF() throws IOException {
+ void multiSheetReferencesHSSFandXSSF() throws IOException {
Workbook[] wbs = new Workbook[] {
HSSFTestDataSamples.openSampleWorkbook("55906-MultiSheetRefs.xls"),
XSSFTestDataSamples.openSampleWorkbook("55906-MultiSheetRefs.xlsx")
@@ -560,7 +560,7 @@ public final class TestXSSFFormulaParser
}
@Test
- public void parseStructuredReferences() throws IOException {
+ void parseStructuredReferences() throws IOException {
XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("StructuredReferences.xlsx");
XSSFEvaluationWorkbook fpb = XSSFEvaluationWorkbook.create(wb);
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFHeaderFooterProperties.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFHeaderFooterProperties.java?rev=1885318&r1=1885317&r2=1885318&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFHeaderFooterProperties.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFHeaderFooterProperties.java Sat Jan 9 20:19:07 2021
@@ -31,14 +31,14 @@ public class TestXSSFHeaderFooterPropert
private XSSFHeaderFooterProperties hfProp;
@BeforeEach
- public void before() {
+ void before() {
wb = new XSSFWorkbook();
sheet = wb.createSheet();
hfProp = sheet.getHeaderFooterProperties();
}
@AfterEach
- public void after() throws Exception {
+ void after() throws Exception {
wb.close();
}
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFOddFooter.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFOddFooter.java?rev=1885318&r1=1885317&r2=1885318&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFOddFooter.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFOddFooter.java Sat Jan 9 20:19:07 2021
@@ -29,13 +29,13 @@ public class TestXSSFOddFooter {
private XSSFSheet sheet;
@BeforeEach
- public void before() {
+ void before() {
wb = new XSSFWorkbook();
sheet = wb.createSheet();
}
@AfterEach
- public void after() throws Exception {
+ void after() throws Exception {
wb.close();
}
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFOddHeader.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFOddHeader.java?rev=1885318&r1=1885317&r2=1885318&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFOddHeader.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFOddHeader.java Sat Jan 9 20:19:07 2021
@@ -29,13 +29,13 @@ public class TestXSSFOddHeader {
private XSSFSheet sheet;
@BeforeEach
- public void before() {
+ void before() {
wb = new XSSFWorkbook();
sheet = wb.createSheet();
}
@AfterEach
- public void after() throws Exception {
+ void after() throws Exception {
wb.close();
}
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFPicture.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFPicture.java?rev=1885318&r1=1885317&r2=1885318&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFPicture.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFPicture.java Sat Jan 9 20:19:07 2021
@@ -46,7 +46,7 @@ public final class TestXSSFPicture exten
}
@Test
- public void create() throws IOException {
+ void create() throws IOException {
try (XSSFWorkbook wb = new XSSFWorkbook()) {
XSSFSheet sheet = wb.createSheet();
XSSFDrawing drawing = sheet.createDrawingPatriarch();
@@ -83,7 +83,7 @@ public final class TestXSSFPicture exten
* See Bugzilla 50458
*/
@Test
- public void incrementShapeId() throws IOException {
+ void incrementShapeId() throws IOException {
try (XSSFWorkbook wb = new XSSFWorkbook()) {
XSSFSheet sheet = wb.createSheet();
XSSFDrawing drawing = sheet.createDrawingPatriarch();
@@ -106,7 +106,7 @@ public final class TestXSSFPicture exten
* same image refrerred by mulitple sheets
*/
@Test
- public void multiRelationShips() throws IOException {
+ void multiRelationShips() throws IOException {
try (XSSFWorkbook wb1 = new XSSFWorkbook()) {
byte[] pic1Data = "test jpeg data".getBytes(LocaleUtil.CHARSET_1252);
byte[] pic2Data = "test png data".getBytes(LocaleUtil.CHARSET_1252);
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFPivotTableName.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFPivotTableName.java?rev=1885318&r1=1885317&r2=1885318&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFPivotTableName.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFPivotTableName.java Sat Jan 9 20:19:07 2021
@@ -29,7 +29,7 @@ public class TestXSSFPivotTableName exte
@Override
@BeforeEach
- public void setUp(){
+ protected void setUp(){
wb = new XSSFWorkbook();
XSSFSheet sheet = wb.createSheet();
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org