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=1885283&r1=1885282&r2=1885283&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 00:46:52 2021 @@ -407,7 +407,7 @@ public final class TestXSSFFormulaParser } @Test - public void test58648Single() throws IOException { + void test58648Single() throws IOException { try (XSSFWorkbook wb = new XSSFWorkbook()) { XSSFEvaluationWorkbook fpb = XSSFEvaluationWorkbook.create(wb); Ptg[] ptgs; @@ -420,7 +420,7 @@ public final class TestXSSFFormulaParser } @Test - public void test58648Basic() throws IOException { + void test58648Basic() throws IOException { XSSFWorkbook wb = new XSSFWorkbook(); XSSFEvaluationWorkbook fpb = XSSFEvaluationWorkbook.create(wb); Ptg[] ptgs; @@ -463,7 +463,7 @@ public final class TestXSSFFormulaParser } @Test - public void test58648FormulaParsing() throws IOException { + void test58648FormulaParsing() throws IOException { Workbook wb = XSSFTestDataSamples.openSampleWorkbook("58648.xlsx"); FormulaEvaluator evaluator = wb.getCreationHelper().createFormulaEvaluator(); @@ -494,7 +494,7 @@ public final class TestXSSFFormulaParser } @Test - public void testWhitespaceInFormula() throws IOException { + void testWhitespaceInFormula() throws IOException { XSSFWorkbook wb = new XSSFWorkbook(); XSSFEvaluationWorkbook fpb = XSSFEvaluationWorkbook.create(wb); Ptg[] ptgs; @@ -536,7 +536,7 @@ public final class TestXSSFFormulaParser } @Test - public void testWhitespaceInComplexFormula() throws IOException { + void testWhitespaceInComplexFormula() throws IOException { XSSFWorkbook wb = new XSSFWorkbook(); XSSFEvaluationWorkbook fpb = XSSFEvaluationWorkbook.create(wb); Ptg[] ptgs;
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=1885283&r1=1885282&r2=1885283&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 00:46:52 2021 @@ -43,14 +43,14 @@ public class TestXSSFHeaderFooterPropert } @Test - public void testGetAlignWithMargins() { + void testGetAlignWithMargins() { assertFalse(hfProp.getAlignWithMargins()); hfProp.setAlignWithMargins(true); assertTrue(hfProp.getAlignWithMargins()); } @Test - public void testGetDifferentFirst() { + void testGetDifferentFirst() { assertFalse(hfProp.getDifferentFirst()); hfProp.setDifferentFirst(true); assertTrue(hfProp.getDifferentFirst()); @@ -59,7 +59,7 @@ public class TestXSSFHeaderFooterPropert } @Test - public void testGetDifferentOddEven() { + void testGetDifferentOddEven() { assertFalse(hfProp.getDifferentOddEven()); hfProp.setDifferentOddEven(true); assertTrue(hfProp.getDifferentOddEven()); @@ -68,14 +68,14 @@ public class TestXSSFHeaderFooterPropert } @Test - public void testGetScaleWithDoc() { + void testGetScaleWithDoc() { assertFalse(hfProp.getScaleWithDoc()); hfProp.setScaleWithDoc(true); assertTrue(hfProp.getScaleWithDoc()); } @Test - public void testRemoveAlignWithMargins() { + void testRemoveAlignWithMargins() { hfProp.setAlignWithMargins(true); assertTrue(hfProp.getHeaderFooter().isSetAlignWithMargins()); hfProp.removeAlignWithMargins(); @@ -83,7 +83,7 @@ public class TestXSSFHeaderFooterPropert } @Test - public void testRemoveDifferentFirst() { + void testRemoveDifferentFirst() { hfProp.setDifferentFirst(true); assertTrue(hfProp.getHeaderFooter().isSetDifferentFirst()); hfProp.removeDifferentFirst(); @@ -91,7 +91,7 @@ public class TestXSSFHeaderFooterPropert } @Test - public void testRemoveDifferentOddEven() { + void testRemoveDifferentOddEven() { hfProp.setDifferentOddEven(true); assertTrue(hfProp.getHeaderFooter().isSetDifferentOddEven()); hfProp.removeDifferentOddEven(); @@ -99,7 +99,7 @@ public class TestXSSFHeaderFooterPropert } @Test - public void testRemoveScaleWithDoc() { + void testRemoveScaleWithDoc() { hfProp.setScaleWithDoc(true); assertTrue(hfProp.getHeaderFooter().isSetScaleWithDoc()); hfProp.removeScaleWithDoc(); Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFHyperlink.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFHyperlink.java?rev=1885283&r1=1885282&r2=1885283&view=diff ============================================================================== --- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFHyperlink.java (original) +++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFHyperlink.java Sat Jan 9 00:46:52 2021 @@ -39,7 +39,7 @@ public final class TestXSSFHyperlink ext } @Test - public void testLoadExisting() throws IOException { + void testLoadExisting() throws IOException { try (XSSFWorkbook workbook = XSSFTestDataSamples.openSampleWorkbook("WithMoreVariousData.xlsx")) { assertEquals(3, workbook.getNumberOfSheets()); @@ -52,7 +52,7 @@ public final class TestXSSFHyperlink ext } @Test - public void testCreate() throws Exception { + void testCreate() throws Exception { XSSFWorkbook workbook = new XSSFWorkbook(); XSSFSheet sheet = workbook.createSheet(); XSSFRow row = sheet.createRow(0); @@ -97,7 +97,7 @@ public final class TestXSSFHyperlink ext } @Test - public void testInvalidURLs() throws IOException { + void testInvalidURLs() throws IOException { try (XSSFWorkbook workbook = new XSSFWorkbook()) { XSSFCreationHelper createHelper = workbook.getCreationHelper(); @@ -114,7 +114,7 @@ public final class TestXSSFHyperlink ext } @Test - public void testLoadSave() throws IOException { + void testLoadSave() throws IOException { try (XSSFWorkbook workbook = XSSFTestDataSamples.openSampleWorkbook("WithMoreVariousData.xlsx")) { CreationHelper createHelper = workbook.getCreationHelper(); assertEquals(3, workbook.getNumberOfSheets()); @@ -224,7 +224,7 @@ public final class TestXSSFHyperlink ext } @Test - public void test52716() throws IOException { + void test52716() throws IOException { try (XSSFWorkbook wb1 = XSSFTestDataSamples.openSampleWorkbook("52716.xlsx")) { XSSFSheet sh1 = wb1.getSheetAt(0); @@ -245,7 +245,7 @@ public final class TestXSSFHyperlink ext } @Test - public void test53734() throws IOException { + void test53734() throws IOException { try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("53734.xlsx")) { Hyperlink link = wb.getSheetAt(0).getRow(0).getCell(0).getHyperlink(); assertEquals("javascript:///", link.getAddress()); @@ -258,7 +258,7 @@ public final class TestXSSFHyperlink ext } @Test - public void test53282() throws IOException { + void test53282() throws IOException { try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("53282.xlsx")) { Hyperlink link = wb.getSheetAt(0).getRow(0).getCell(14).getHyperlink(); assertEquals("mailto:nob...@nowhere.uk%C2%A0", link.getAddress()); @@ -276,7 +276,7 @@ public final class TestXSSFHyperlink ext } @Test - public void testCopyHSSFHyperlink() throws IOException { + void testCopyHSSFHyperlink() throws IOException { HSSFWorkbook hssfworkbook = new HSSFWorkbook(); HSSFHyperlink hlink = hssfworkbook.getCreationHelper().createHyperlink(HyperlinkType.URL); hlink.setAddress("http://poi.apache.org/"); @@ -299,7 +299,7 @@ public final class TestXSSFHyperlink ext * URLs with a hash mark (#) are still URL hyperlinks, not document links */ @Test - public void testURLsWithHashMark() throws IOException { + void testURLsWithHashMark() throws IOException { XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("59775.xlsx"); XSSFSheet sh = wb.getSheetAt(0); CellAddress A2 = new CellAddress("A2"); @@ -331,7 +331,7 @@ public final class TestXSSFHyperlink ext } @Test - public void test() throws IOException { + void test() throws IOException { XSSFWorkbook wb = new XSSFWorkbook(); CreationHelper createHelper = wb.getCreationHelper(); Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFName.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFName.java?rev=1885283&r1=1885282&r2=1885283&view=diff ============================================================================== --- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFName.java (original) +++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFName.java Sat Jan 9 00:46:52 2021 @@ -39,7 +39,7 @@ public final class TestXSSFName extends //TODO combine testRepeatingRowsAndColums() for HSSF and XSSF @Test - public void testRepeatingRowsAndColums() throws Exception { + void testRepeatingRowsAndColums() throws Exception { // First test that setting RR&C for same sheet more than once only creates a // single Print_Titles built-in record XSSFWorkbook wb = new XSSFWorkbook(); @@ -100,7 +100,7 @@ public final class TestXSSFName extends } @Test - public void testSetNameName() throws Exception { + void testSetNameName() throws Exception { // Test that renaming named ranges doesn't break our new named range map XSSFWorkbook wb = new XSSFWorkbook(); wb.createSheet("First Sheet"); @@ -135,7 +135,7 @@ public final class TestXSSFName extends //github-55 @Test - public void testSetNameNameCellAddress() throws IOException { + void testSetNameNameCellAddress() throws IOException { XSSFWorkbook wb = new XSSFWorkbook(); wb.createSheet("First Sheet"); XSSFName name = wb.createName(); 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=1885283&r1=1885282&r2=1885283&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 00:46:52 2021 @@ -40,7 +40,7 @@ public class TestXSSFOddFooter { } @Test - public void testSetGetText() { + void testSetGetText() { XSSFOddFooter footer = (XSSFOddFooter) sheet.getOddFooter(); assertNotNull(footer); assertNull(footer.getText()); 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=1885283&r1=1885282&r2=1885283&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 00:46:52 2021 @@ -40,7 +40,7 @@ public class TestXSSFOddHeader { } @Test - public void testSetGetText() { + void testSetGetText() { XSSFOddHeader header = (XSSFOddHeader) sheet.getOddHeader(); assertNotNull(header); assertNull(header.getText()); Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFPictureData.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFPictureData.java?rev=1885283&r1=1885282&r2=1885283&view=diff ============================================================================== --- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFPictureData.java (original) +++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFPictureData.java Sat Jan 9 00:46:52 2021 @@ -34,7 +34,7 @@ import org.junit.jupiter.api.Test; */ public final class TestXSSFPictureData { @Test - public void testRead() throws IOException { + void testRead() throws IOException { XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("WithDrawing.xlsx"); List<XSSFPictureData> pictures = wb.getAllPictures(); //wb.getAllPictures() should return the same instance across multiple calls @@ -63,7 +63,7 @@ public final class TestXSSFPictureData { } @Test - public void testNew() throws IOException { + void testNew() throws IOException { XSSFWorkbook wb = new XSSFWorkbook(); XSSFSheet sheet = wb.createSheet(); XSSFDrawing drawing = sheet.createDrawingPatriarch(); @@ -119,7 +119,7 @@ public final class TestXSSFPictureData { * Bug 53568: XSSFPicture.getPictureData() can return null. */ @Test - public void test53568() throws IOException { + void test53568() throws IOException { XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("53568.xlsx"); List<XSSFPictureData> pictures = wb.getAllPictures(); assertNotNull(pictures); Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFPrintSetup.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFPrintSetup.java?rev=1885283&r1=1885282&r2=1885283&view=diff ============================================================================== --- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFPrintSetup.java (original) +++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFPrintSetup.java Sat Jan 9 00:46:52 2021 @@ -39,7 +39,7 @@ import static org.junit.jupiter.api.Asse */ public class TestXSSFPrintSetup { @Test - public void testSetGetPaperSize() { + void testSetGetPaperSize() { CTWorksheet worksheet = CTWorksheet.Factory.newInstance(); CTPageSetup pSetup = worksheet.addNewPageSetup(); pSetup.setPaperSize(9); @@ -52,7 +52,7 @@ public class TestXSSFPrintSetup { } @Test - public void testSetGetScale() { + void testSetGetScale() { CTWorksheet worksheet = CTWorksheet.Factory.newInstance(); CTPageSetup pSetup = worksheet.addNewPageSetup(); pSetup.setScale(9); @@ -64,7 +64,7 @@ public class TestXSSFPrintSetup { } @Test - public void testSetGetPageStart() { + void testSetGetPageStart() { CTWorksheet worksheet = CTWorksheet.Factory.newInstance(); CTPageSetup pSetup = worksheet.addNewPageSetup(); pSetup.setFirstPageNumber(9); @@ -76,7 +76,7 @@ public class TestXSSFPrintSetup { } @Test - public void testSetGetFitWidthHeight() { + void testSetGetFitWidthHeight() { CTWorksheet worksheet = CTWorksheet.Factory.newInstance(); CTPageSetup pSetup = worksheet.addNewPageSetup(); pSetup.setFitToWidth(50); @@ -93,7 +93,7 @@ public class TestXSSFPrintSetup { } @Test - public void testSetGetLeftToRight() { + void testSetGetLeftToRight() { CTWorksheet worksheet = CTWorksheet.Factory.newInstance(); CTPageSetup pSetup = worksheet.addNewPageSetup(); pSetup.setPageOrder(STPageOrder.DOWN_THEN_OVER); @@ -105,7 +105,7 @@ public class TestXSSFPrintSetup { } @Test - public void testSetGetOrientation() { + void testSetGetOrientation() { CTWorksheet worksheet = CTWorksheet.Factory.newInstance(); CTPageSetup pSetup = worksheet.addNewPageSetup(); pSetup.setOrientation(STOrientation.PORTRAIT); @@ -121,7 +121,7 @@ public class TestXSSFPrintSetup { } @Test - public void testSetGetValidSettings() { + void testSetGetValidSettings() { CTWorksheet worksheet = CTWorksheet.Factory.newInstance(); CTPageSetup pSetup = worksheet.addNewPageSetup(); pSetup.setUsePrinterDefaults(false); @@ -133,7 +133,7 @@ public class TestXSSFPrintSetup { } @Test - public void testSetGetNoColor() { + void testSetGetNoColor() { CTWorksheet worksheet = CTWorksheet.Factory.newInstance(); CTPageSetup pSetup = worksheet.addNewPageSetup(); pSetup.setBlackAndWhite(false); @@ -145,7 +145,7 @@ public class TestXSSFPrintSetup { } @Test - public void testSetGetDraft() { + void testSetGetDraft() { CTWorksheet worksheet = CTWorksheet.Factory.newInstance(); CTPageSetup pSetup = worksheet.addNewPageSetup(); pSetup.setDraft(false); @@ -157,7 +157,7 @@ public class TestXSSFPrintSetup { } @Test - public void testSetGetNotes() { + void testSetGetNotes() { CTWorksheet worksheet = CTWorksheet.Factory.newInstance(); CTPageSetup pSetup = worksheet.addNewPageSetup(); pSetup.setCellComments(STCellComments.NONE); @@ -169,7 +169,7 @@ public class TestXSSFPrintSetup { } @Test - public void testSetGetUsePage() { + void testSetGetUsePage() { CTWorksheet worksheet = CTWorksheet.Factory.newInstance(); CTPageSetup pSetup = worksheet.addNewPageSetup(); pSetup.setUseFirstPageNumber(false); @@ -181,7 +181,7 @@ public class TestXSSFPrintSetup { } @Test - public void testSetGetHVResolution() { + void testSetGetHVResolution() { CTWorksheet worksheet = CTWorksheet.Factory.newInstance(); CTPageSetup pSetup = worksheet.addNewPageSetup(); pSetup.setHorizontalDpi(120); @@ -197,7 +197,7 @@ public class TestXSSFPrintSetup { } @Test - public void testSetGetHeaderFooterMargin() { + void testSetGetHeaderFooterMargin() { CTWorksheet worksheet = CTWorksheet.Factory.newInstance(); CTPageMargins pMargins = worksheet.addNewPageMargins(); pMargins.setHeader(1.5); @@ -213,7 +213,7 @@ public class TestXSSFPrintSetup { } @Test - public void testSetGetMargins() { + void testSetGetMargins() { CTWorksheet worksheet = CTWorksheet.Factory.newInstance(); CTPageMargins pMargins = worksheet.addNewPageMargins(); pMargins.setTop(5.3); @@ -237,7 +237,7 @@ public class TestXSSFPrintSetup { } @Test - public void testSetGetCopies() { + void testSetGetCopies() { CTWorksheet worksheet = CTWorksheet.Factory.newInstance(); CTPageSetup pSetup = worksheet.addNewPageSetup(); pSetup.setCopies(9); @@ -249,7 +249,7 @@ public class TestXSSFPrintSetup { } @Test - public void testSetSaveRead() throws Exception { + void testSetSaveRead() throws Exception { XSSFWorkbook wb = new XSSFWorkbook(); XSSFSheet s1 = wb.createSheet(); assertFalse(s1.getCTWorksheet().isSetPageSetup()); @@ -291,12 +291,12 @@ public class TestXSSFPrintSetup { * Then, change, save, read, check */ @Test - public void testRoundTrip() { + void testRoundTrip() { // TODO } @Test - public void testSetLandscapeFalse() { + void testSetLandscapeFalse() { XSSFPrintSetup ps = new XSSFPrintSetup(CTWorksheet.Factory.newInstance()); assertFalse(ps.getLandscape()); @@ -309,7 +309,7 @@ public class TestXSSFPrintSetup { } @Test - public void testSetLeftToRight() { + void testSetLeftToRight() { XSSFPrintSetup ps = new XSSFPrintSetup(CTWorksheet.Factory.newInstance()); assertFalse(ps.getLeftToRight()); Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFRichTextString.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFRichTextString.java?rev=1885283&r1=1885282&r2=1885283&view=diff ============================================================================== --- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFRichTextString.java (original) +++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFRichTextString.java Sat Jan 9 00:46:52 2021 @@ -46,7 +46,7 @@ import org.openxmlformats.schemas.spread public final class TestXSSFRichTextString { @Test - public void testCreate() { + void testCreate() { XSSFRichTextString rt = new XSSFRichTextString("Apache POI"); assertEquals("Apache POI", rt.getString()); assertFalse(rt.hasFormatting()); @@ -65,7 +65,7 @@ public final class TestXSSFRichTextStrin } @Test - public void testEmpty() { + void testEmpty() { XSSFRichTextString rt = new XSSFRichTextString(); assertEquals(0, rt.getIndexOfFormattingRun(9999)); assertEquals(-1, rt.getLengthOfFormattingRun(9999)); @@ -73,7 +73,7 @@ public final class TestXSSFRichTextStrin } @Test - public void testApplyFont() { + void testApplyFont() { XSSFRichTextString rt = new XSSFRichTextString(); rt.append("123"); rt.append("4567"); @@ -110,7 +110,7 @@ public final class TestXSSFRichTextStrin } @Test - public void testApplyFontIndex() { + void testApplyFontIndex() { XSSFRichTextString rt = new XSSFRichTextString("Apache POI"); rt.applyFont(0, 10, (short)1); @@ -120,7 +120,7 @@ public final class TestXSSFRichTextStrin } @Test - public void testApplyFontWithStyles() { + void testApplyFontWithStyles() { XSSFRichTextString rt = new XSSFRichTextString("Apache POI"); StylesTable tbl = new StylesTable(); @@ -133,7 +133,7 @@ public final class TestXSSFRichTextStrin } @Test - public void testApplyFontException() { + void testApplyFontException() { XSSFRichTextString rt = new XSSFRichTextString("Apache POI"); rt.applyFont(0, 0, (short)1); @@ -149,7 +149,7 @@ public final class TestXSSFRichTextStrin } @Test - public void testClearFormatting() { + void testClearFormatting() { XSSFRichTextString rt = new XSSFRichTextString("Apache POI"); assertEquals("Apache POI", rt.getString()); @@ -178,7 +178,7 @@ public final class TestXSSFRichTextStrin } @Test - public void testGetFonts() { + void testGetFonts() { XSSFRichTextString rt = new XSSFRichTextString(); @@ -206,7 +206,7 @@ public final class TestXSSFRichTextStrin * if a string has leading or trailing white spaces */ @Test - public void testPreserveSpaces() { + void testPreserveSpaces() { XSSFRichTextString rt = new XSSFRichTextString("Apache"); CTRst ct = rt.getCTRst(); STXstring xs = ct.xgetT(); @@ -226,7 +226,7 @@ public final class TestXSSFRichTextStrin * test that unicode representation_ xHHHH_ is properly processed */ @Test - public void testUtfDecode() { + void testUtfDecode() { CTRst st = CTRst.Factory.newInstance(); st.setT("abc_x000D_2ef_x000D_"); XSSFRichTextString rt = new XSSFRichTextString(st); @@ -241,7 +241,7 @@ public final class TestXSSFRichTextStrin } @Test - public void testApplyFont_lowlevel(){ + void testApplyFont_lowlevel(){ CTRst st = CTRst.Factory.newInstance(); String text = "Apache Software Foundation"; XSSFRichTextString str = new XSSFRichTextString(text); @@ -356,7 +356,7 @@ public final class TestXSSFRichTextStrin } @Test - public void testApplyFont_usermodel(){ + void testApplyFont_usermodel(){ String text = "Apache Software Foundation"; XSSFRichTextString str = new XSSFRichTextString(text); XSSFFont font1 = new XSSFFont(); @@ -384,7 +384,7 @@ public final class TestXSSFRichTextStrin } @Test - public void testLineBreaks_bug48877() { + void testLineBreaks_bug48877() { XSSFFont font = new XSSFFont(); font.setBold(true); @@ -444,7 +444,7 @@ public final class TestXSSFRichTextStrin } @Test - public void testBug56511() throws IOException { + void testBug56511() throws IOException { try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("56511.xlsx")) { for (Sheet sheet : wb) { int lastRow = sheet.getLastRowNum(); @@ -475,7 +475,7 @@ public final class TestXSSFRichTextStrin } @Test - public void testBug56511_values() throws IOException { + void testBug56511_values() throws IOException { try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("56511.xlsx")) { Sheet sheet = wb.getSheetAt(0); Row row = sheet.getRow(0); @@ -515,7 +515,7 @@ public final class TestXSSFRichTextStrin } @Test - public void testToString() { + void testToString() { XSSFRichTextString rt = new XSSFRichTextString("Apache POI"); assertNotNull(rt.toString()); @@ -524,7 +524,7 @@ public final class TestXSSFRichTextStrin } @Test - public void test59008Font() { + void test59008Font() { XSSFFont font = new XSSFFont(CTFont.Factory.newInstance()); XSSFRichTextString rts = new XSSFRichTextString(); @@ -541,14 +541,14 @@ public final class TestXSSFRichTextStrin } @Test - public void test60289UtfDecode() throws IOException { + void test60289UtfDecode() throws IOException { XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("60289.xlsx"); assertEquals("Rich Text\r\nTest", wb.getSheetAt(0).getRow(1).getCell(1).getRichStringCellValue().getString()); wb.close(); } @Test - public void testUtfDecode_withApplyFont() { + void testUtfDecode_withApplyFont() { XSSFFont font = new XSSFFont(); font.setBold(true); font.setFontHeightInPoints((short) 14); @@ -561,7 +561,7 @@ public final class TestXSSFRichTextStrin } @Test - public void testUtfLength() { + void testUtfLength() { assertEquals(0, XSSFRichTextString.utfLength(null)); assertEquals(0, XSSFRichTextString.utfLength("")); Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFRow.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFRow.java?rev=1885283&r1=1885282&r2=1885283&view=diff ============================================================================== --- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFRow.java (original) +++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFRow.java Sat Jan 9 00:46:52 2021 @@ -44,7 +44,7 @@ public final class TestXSSFRow extends B } @Test - public void testCopyRowFrom() throws IOException { + void testCopyRowFrom() throws IOException { final XSSFWorkbook workbook = new XSSFWorkbook(); final XSSFSheet sheet = workbook.createSheet("test"); final XSSFRow srcRow = sheet.createRow(0); @@ -59,7 +59,7 @@ public final class TestXSSFRow extends B } @Test - public void testCopyRowFromExternalSheet() throws IOException { + void testCopyRowFromExternalSheet() throws IOException { final XSSFWorkbook workbook = new XSSFWorkbook(); final Sheet srcSheet = workbook.createSheet("src"); final XSSFSheet destSheet = workbook.createSheet("dest"); @@ -154,7 +154,7 @@ public final class TestXSSFRow extends B } @Test - public void testCopyRowOverwritesExistingRow() throws IOException { + void testCopyRowOverwritesExistingRow() throws IOException { final XSSFWorkbook workbook = new XSSFWorkbook(); final XSSFSheet sheet1 = workbook.createSheet("Sheet1"); final Sheet sheet2 = workbook.createSheet("Sheet2"); @@ -197,7 +197,7 @@ public final class TestXSSFRow extends B } @Test - public void testMultipleEditWriteCycles() { + void testMultipleEditWriteCycles() { final XSSFWorkbook wb1 = new XSSFWorkbook(); final XSSFSheet sheet1 = wb1.createSheet("Sheet1"); XSSFRow srcRow = sheet1.createRow(0); Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFShape.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFShape.java?rev=1885283&r1=1885282&r2=1885283&view=diff ============================================================================== --- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFShape.java (original) +++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFShape.java Sat Jan 9 00:46:52 2021 @@ -32,14 +32,14 @@ import org.junit.jupiter.api.Test; public final class TestXSSFShape { @Test - public void test58325_one() throws IOException { + void test58325_one() throws IOException { try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("58325_lt.xlsx")) { check58325(wb, 1); } } @Test - public void test58325_three() throws IOException { + void test58325_three() throws IOException { try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("58325_db.xlsx")) { check58325(wb, 3); } Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFSheet.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFSheet.java?rev=1885283&r1=1885282&r2=1885283&view=diff ============================================================================== --- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFSheet.java (original) +++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFSheet.java Sat Jan 9 00:46:52 2021 @@ -1308,7 +1308,7 @@ public final class TestXSSFSheet extends } @Test - public void testCreateTwoPivotTablesInOneSheet() throws IOException { + void testCreateTwoPivotTablesInOneSheet() throws IOException { XSSFWorkbook wb = setupSheet(); XSSFSheet sheet = wb.getSheetAt(0); @@ -1326,7 +1326,7 @@ public final class TestXSSFSheet extends } @Test - public void testCreateTwoPivotTablesInTwoSheets() throws IOException { + void testCreateTwoPivotTablesInTwoSheets() throws IOException { XSSFWorkbook wb = setupSheet(); XSSFSheet sheet = wb.getSheetAt(0); @@ -1345,7 +1345,7 @@ public final class TestXSSFSheet extends } @Test - public void testCreatePivotTable() throws IOException { + void testCreatePivotTable() throws IOException { XSSFWorkbook wb = setupSheet(); XSSFSheet sheet = wb.getSheetAt(0); @@ -1358,7 +1358,7 @@ public final class TestXSSFSheet extends } @Test - public void testCreatePivotTableInOtherSheetThanDataSheet() throws IOException { + void testCreatePivotTableInOtherSheetThanDataSheet() throws IOException { XSSFWorkbook wb = setupSheet(); XSSFSheet sheet1 = wb.getSheetAt(0); XSSFSheet sheet2 = wb.createSheet(); @@ -1374,7 +1374,7 @@ public final class TestXSSFSheet extends } @Test - public void testCreatePivotTableInOtherSheetThanDataSheetUsingAreaReference() throws IOException { + void testCreatePivotTableInOtherSheetThanDataSheetUsingAreaReference() throws IOException { XSSFWorkbook wb = setupSheet(); XSSFSheet sheet = wb.getSheetAt(0); XSSFSheet sheet2 = wb.createSheet("TEST"); @@ -1387,7 +1387,7 @@ public final class TestXSSFSheet extends } @Test - public void testCreatePivotTableWithConflictingDataSheets() throws IOException { + void testCreatePivotTableWithConflictingDataSheets() throws IOException { try (XSSFWorkbook wb = setupSheet()) { XSSFSheet sheet = wb.getSheetAt(0); XSSFSheet sheet2 = wb.createSheet("TEST"); @@ -1399,7 +1399,7 @@ public final class TestXSSFSheet extends } @Test - public void testReadFails() throws IOException { + void testReadFails() throws IOException { try (XSSFWorkbook wb = new XSSFWorkbook()) { XSSFSheet sheet = wb.createSheet(); @@ -1415,7 +1415,7 @@ public final class TestXSSFSheet extends * Feel free to relocated or delete this unit test if it doesn't belong here. */ @Test - public void testCreateComment() throws IOException { + void testCreateComment() throws IOException { XSSFWorkbook wb = new XSSFWorkbook(); ClientAnchor anchor = wb.getCreationHelper().createClientAnchor(); XSSFSheet sheet = wb.createSheet(); @@ -1761,17 +1761,17 @@ public final class TestXSSFSheet extends } @Test - public void testCopyOneRow() throws IOException { + void testCopyOneRow() throws IOException { testCopyOneRow("XSSFSheet.copyRows.xlsx"); } @Test - public void testCopyMultipleRows() throws IOException { + void testCopyMultipleRows() throws IOException { testCopyMultipleRows("XSSFSheet.copyRows.xlsx"); } @Test - public void testIgnoredErrors() throws IOException { + void testIgnoredErrors() throws IOException { XSSFWorkbook workbook = new XSSFWorkbook(); XSSFSheet sheet = workbook.createSheet(); CellRangeAddress region = CellRangeAddress.valueOf("B2:D4"); @@ -1790,7 +1790,7 @@ public final class TestXSSFSheet extends } @Test - public void testIgnoredErrorsMultipleTypes() throws IOException { + void testIgnoredErrorsMultipleTypes() throws IOException { XSSFWorkbook workbook = new XSSFWorkbook(); XSSFSheet sheet = workbook.createSheet(); CellRangeAddress region = CellRangeAddress.valueOf("B2:D4"); @@ -1812,7 +1812,7 @@ public final class TestXSSFSheet extends } @Test - public void testIgnoredErrorsMultipleCalls() throws IOException { + void testIgnoredErrorsMultipleCalls() throws IOException { XSSFWorkbook workbook = new XSSFWorkbook(); XSSFSheet sheet = workbook.createSheet(); CellRangeAddress region = CellRangeAddress.valueOf("B2:D4"); @@ -1888,7 +1888,7 @@ public final class TestXSSFSheet extends * See bug #52425 */ @Test - public void testInsertCommentsToClonedSheet() throws IOException { + void testInsertCommentsToClonedSheet() throws IOException { Workbook wb = XSSFTestDataSamples.openSampleWorkbook("52425.xlsx"); CreationHelper helper = wb.getCreationHelper(); Sheet sheet2 = wb.createSheet("Sheet 2"); @@ -1932,7 +1932,7 @@ public final class TestXSSFSheet extends // bug 59687: XSSFSheet.RemoveRow doesn't handle row gaps properly when removing row comments @Test - public void testRemoveRowWithCommentAndGapAbove() throws IOException { + void testRemoveRowWithCommentAndGapAbove() throws IOException { try (Workbook wb = _testDataProvider.openSampleWorkbook("59687.xlsx")) { final Sheet sheet = wb.getSheetAt(0); @@ -1949,7 +1949,7 @@ public final class TestXSSFSheet extends } @Test - public void testGetHeaderFooterProperties() throws IOException { + void testGetHeaderFooterProperties() throws IOException { try (XSSFWorkbook wb = new XSSFWorkbook()) { XSSFSheet sh = wb.createSheet(); @@ -1959,7 +1959,7 @@ public final class TestXSSFSheet extends } @Test - public void testSheetForceFormulaRecalculationDefaultValues() throws IOException { + void testSheetForceFormulaRecalculationDefaultValues() throws IOException { try (Workbook wb = _testDataProvider.openSampleWorkbook("sample.xlsx")){ for (Sheet s : wb) { assertEquals(wb.getForceFormulaRecalculation(),s.getForceFormulaRecalculation()); @@ -1968,7 +1968,7 @@ public final class TestXSSFSheet extends } @Test - public void testWorkbookSetForceFormulaRecalculation() throws IOException { + void testWorkbookSetForceFormulaRecalculation() throws IOException { try (Workbook wb = _testDataProvider.openSampleWorkbook("sample.xlsx")){ wb.setForceFormulaRecalculation(true); assertTrue(wb.getForceFormulaRecalculation()); @@ -1976,7 +1976,7 @@ public final class TestXSSFSheet extends } @Test - public void testNotCascadeWorkbookSetForceFormulaRecalculation() throws IOException { + void testNotCascadeWorkbookSetForceFormulaRecalculation() throws IOException { try (Workbook wb = _testDataProvider.openSampleWorkbook("sample.xlsx")) { // set all sheets to force recalculation for (Sheet s : wb) { Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFSheetMergeRegions.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFSheetMergeRegions.java?rev=1885283&r1=1885282&r2=1885283&view=diff ============================================================================== --- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFSheetMergeRegions.java (original) +++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFSheetMergeRegions.java Sat Jan 9 00:46:52 2021 @@ -32,7 +32,7 @@ public class TestXSSFSheetMergeRegions { private static final POILogger LOG = POILogFactory.getLogger(TestXSSFSheetMergeRegions.class); @Test - public void testMergeRegionsSpeed() throws IOException { + void testMergeRegionsSpeed() throws IOException { try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("57893-many-merges.xlsx")) { long millis = Long.MAX_VALUE; Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFSheetRowGrouping.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFSheetRowGrouping.java?rev=1885283&r1=1885282&r2=1885283&view=diff ============================================================================== --- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFSheetRowGrouping.java (original) +++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFSheetRowGrouping.java Sat Jan 9 00:46:52 2021 @@ -35,7 +35,7 @@ public final class TestXSSFSheetRowGroup private static final int GROUP_SIZE = 5; @Test - public void test55640() { + void test55640() { //long startTime = System.currentTimeMillis(); Workbook wb = new XSSFWorkbook(); fillData(wb); @@ -90,7 +90,7 @@ public final class TestXSSFSheetRowGroup } @Test - public void test55640reduce1() { + void test55640reduce1() { Workbook wb = new XSSFWorkbook(); Sheet sheet = wb.createSheet("sheet123"); sheet.setRowSumsBelow(false); @@ -119,7 +119,7 @@ public final class TestXSSFSheetRowGroup } @Test - public void test55640_VerifyCases() { + void test55640_VerifyCases() { // NOTE: This is currently based on current behavior of POI, somehow // what POI returns in the calls to collapsed/hidden is not fully matching // the examples in the spec or I did not fully understand how POI stores the data internally... @@ -232,7 +232,7 @@ public final class TestXSSFSheetRowGroup } @Test - public void test55640_VerifyCasesSpec() { + void test55640_VerifyCasesSpec() { // NOTE: This is currently based on current behavior of POI, somehow // what POI returns in the calls to collapsed/hidden is not fully matching // the examples in the spec or I did not fully understand how POI stores the data internally... @@ -330,7 +330,7 @@ public final class TestXSSFSheetRowGroup } @Test - public void test55640working() { + void test55640working() { Workbook wb = new XSSFWorkbook(); Sheet sheet = wb.createSheet("sheet123"); @@ -346,7 +346,7 @@ public final class TestXSSFSheetRowGroup } @Test - public void testGroupingTest() throws IOException { + void testGroupingTest() throws IOException { try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("GroupTest.xlsx")) { assertEquals(31, wb.getSheetAt(0).getLastRowNum()); Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFSheetShiftRows.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFSheetShiftRows.java?rev=1885283&r1=1885282&r2=1885283&view=diff ============================================================================== --- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFSheetShiftRows.java (original) +++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFSheetShiftRows.java Sat Jan 9 00:46:52 2021 @@ -43,7 +43,7 @@ public final class TestXSSFSheetShiftRow /** Error occurred at FormulaShifter#rowMoveAreaPtg while shift rows upward. */ @Test - public void testBug54524() throws IOException { + void testBug54524() throws IOException { XSSFWorkbook workbook = XSSFTestDataSamples.openSampleWorkbook("54524.xlsx"); XSSFSheet sheet = workbook.getSheetAt(0); sheet.shiftRows(3, 5, -1); @@ -59,7 +59,7 @@ public final class TestXSSFSheetShiftRow /** negative row shift causes corrupted data or throws exception */ @Test - public void testBug53798() throws IOException { + void testBug53798() throws IOException { // NOTE that for HSSF (.xls) negative shifts combined with positive ones do work as expected Workbook wb = XSSFTestDataSamples.openSampleWorkbook("53798.xlsx"); @@ -117,7 +117,7 @@ public final class TestXSSFSheetShiftRow /** negative row shift causes corrupted data or throws exception */ @Test - public void testBug53798a() throws IOException { + void testBug53798a() throws IOException { Workbook wb = XSSFTestDataSamples.openSampleWorkbook("53798.xlsx"); Sheet testSheet = wb.getSheetAt(0); @@ -146,7 +146,7 @@ public final class TestXSSFSheetShiftRow /** Shifting rows with comment result - Unreadable content error and comment deletion */ @Test - public void testBug56017() throws IOException { + void testBug56017() throws IOException { Workbook wb = XSSFTestDataSamples.openSampleWorkbook("56017.xlsx"); Sheet sheet = wb.getSheetAt(0); @@ -188,7 +188,7 @@ public final class TestXSSFSheetShiftRow /** Moving the active sheet and deleting the others results in a corrupted file */ @Test - public void test57171() throws IOException { + void test57171() throws IOException { Workbook wb = XSSFTestDataSamples.openSampleWorkbook("57171_57163_57165.xlsx"); assertEquals(5, wb.getActiveSheetIndex()); removeAllSheetsBut(5, wb); // 5 is the active / selected sheet @@ -206,7 +206,7 @@ public final class TestXSSFSheetShiftRow /** Cannot delete an arbitrary sheet in an XLS workbook (only the last one) */ @Test - public void test57163() throws IOException { + void test57163() throws IOException { Workbook wb = XSSFTestDataSamples.openSampleWorkbook("57171_57163_57165.xlsx"); assertEquals(5, wb.getActiveSheetIndex()); wb.removeSheetAt(0); @@ -216,7 +216,7 @@ public final class TestXSSFSheetShiftRow } @Test - public void testSetSheetOrderAndAdjustActiveSheet() throws IOException { + void testSetSheetOrderAndAdjustActiveSheet() throws IOException { Workbook wb = XSSFTestDataSamples.openSampleWorkbook("57171_57163_57165.xlsx"); assertEquals(5, wb.getActiveSheetIndex()); @@ -266,7 +266,7 @@ public final class TestXSSFSheetShiftRow } @Test - public void testRemoveSheetAndAdjustActiveSheet() throws IOException { + void testRemoveSheetAndAdjustActiveSheet() throws IOException { Workbook wb = XSSFTestDataSamples.openSampleWorkbook("57171_57163_57165.xlsx"); assertEquals(5, wb.getActiveSheetIndex()); @@ -306,7 +306,7 @@ public final class TestXSSFSheetShiftRow /** Failed to clone a sheet from an Excel 2010 */ @Test - public void test57165() throws IOException { + void test57165() throws IOException { Workbook wb = XSSFTestDataSamples.openSampleWorkbook("57171_57163_57165.xlsx"); assertEquals(5, wb.getActiveSheetIndex()); removeAllSheetsBut(3, wb); @@ -334,7 +334,7 @@ public final class TestXSSFSheetShiftRow /** Shifting rows with cell comments only shifts comments from first such cell. Other cell comments not shifted */ @Test - public void testBug57828_OnlyOneCommentShiftedInRow() throws IOException { + void testBug57828_OnlyOneCommentShiftedInRow() throws IOException { try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("57828.xlsx")) { XSSFSheet sheet = wb.getSheetAt(0); @@ -389,7 +389,7 @@ public final class TestXSSFSheetShiftRow // bug 59983: Wrong update of shared formulas after shiftRow @Test - public void testSharedFormulas() throws Exception { + void testSharedFormulas() throws Exception { XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("TestShiftRowSharedFormula.xlsx"); XSSFSheet sheet = wb.getSheetAt(0); assertEquals("SUM(C2:C4)", getCellFormula(sheet, "C5")); @@ -414,7 +414,7 @@ public final class TestXSSFSheetShiftRow // bug 59983: Wrong update of shared formulas after shiftRow @Test - public void testShiftSharedFormulas() throws Exception { + void testShiftSharedFormulas() throws Exception { XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("TestShiftRowSharedFormula.xlsx"); XSSFSheet sheet = wb.getSheetAt(0); assertEquals("SUM(C2:C4)", getCellFormula(sheet, "C5")); @@ -448,7 +448,7 @@ public final class TestXSSFSheetShiftRow } @Test - public void test60384() throws IOException { + void test60384() throws IOException { XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("60384.xlsx"); XSSFSheet sheet = wb.getSheetAt(0); @@ -479,7 +479,7 @@ public final class TestXSSFSheetShiftRow } @Test - public void test60709() throws IOException { + void test60709() throws IOException { XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("60709.xlsx"); XSSFSheet sheet = wb.getSheetAt(0); Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFSheetShiftRowsAndColumns.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFSheetShiftRowsAndColumns.java?rev=1885283&r1=1885282&r2=1885283&view=diff ============================================================================== --- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFSheetShiftRowsAndColumns.java (original) +++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFSheetShiftRowsAndColumns.java Sat Jan 9 00:46:52 2021 @@ -114,7 +114,7 @@ public class TestXSSFSheetShiftRowsAndCo * Apply no shift. The purpose of this is to test {@code testCellAddresses} and {@code testMergeRegion}. */ @Test - public void testNoShift() { + void testNoShift() { final String procName = "testNoShift"; fileName = procName+".xlsx"; @@ -123,7 +123,7 @@ public class TestXSSFSheetShiftRowsAndCo } @Test - public void testShiftOneRowAndTestAddresses() { + void testShiftOneRowAndTestAddresses() { final String procName = "testShiftOneRowAndTestAddresses"; fileName = procName+".xlsx"; final int nRowsToShift = 1; @@ -133,7 +133,7 @@ public class TestXSSFSheetShiftRowsAndCo } @Test - public void testShiftOneRowAndTestMergeRegion() { + void testShiftOneRowAndTestMergeRegion() { final String procName = "testShiftOneRowAndTestMergeRegion"; fileName = procName+".xlsx"; final int nRowsToShift = 1; @@ -143,7 +143,7 @@ public class TestXSSFSheetShiftRowsAndCo } @Test - public void testShiftOneColumnAndTestAddresses() { + void testShiftOneColumnAndTestAddresses() { final String procName = "testShiftOneColumnAndTestAddresses"; fileName = procName+".xlsx"; final int nShift = 1; @@ -153,7 +153,7 @@ public class TestXSSFSheetShiftRowsAndCo } @Test - public void testShiftOneColumnAndTestMergeRegion() { + void testShiftOneColumnAndTestMergeRegion() { final String procName = "testShiftOneColumnAndTestMergeRegion"; fileName = procName+".xlsx"; final int nShift = 1; Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFSheetUpdateArrayFormulas.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFSheetUpdateArrayFormulas.java?rev=1885283&r1=1885282&r2=1885283&view=diff ============================================================================== --- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFSheetUpdateArrayFormulas.java (original) +++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFSheetUpdateArrayFormulas.java Sat Jan 9 00:46:52 2021 @@ -46,7 +46,7 @@ public final class TestXSSFSheetUpdateAr // Test methods common with HSSF are in superclass // Local methods here test XSSF-specific details of updating array formulas @Test - public void testXSSFSetArrayFormula_singleCell() throws IOException { + void testXSSFSetArrayFormula_singleCell() throws IOException { CellRange<XSSFCell> cells; XSSFWorkbook workbook = new XSSFWorkbook(); @@ -69,7 +69,7 @@ public final class TestXSSFSheetUpdateAr } @Test - public void testXSSFSetArrayFormula_multiCell() throws IOException { + void testXSSFSetArrayFormula_multiCell() throws IOException { CellRange<XSSFCell> cells; String formula2 = "456"; Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFSimpleShape.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFSimpleShape.java?rev=1885283&r1=1885282&r2=1885283&view=diff ============================================================================== --- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFSimpleShape.java (original) +++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFSimpleShape.java Sat Jan 9 00:46:52 2021 @@ -37,7 +37,7 @@ import org.junit.jupiter.api.Test; public class TestXSSFSimpleShape { @Test - public void testXSSFTextParagraph() throws IOException { + void testXSSFTextParagraph() throws IOException { try (XSSFWorkbook wb = new XSSFWorkbook()) { XSSFSheet sheet = wb.createSheet(); XSSFDrawing drawing = sheet.createDrawingPatriarch(); Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFTable.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFTable.java?rev=1885283&r1=1885282&r2=1885283&view=diff ============================================================================== --- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFTable.java (original) +++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFTable.java Sat Jan 9 00:46:52 2021 @@ -85,7 +85,7 @@ public final class TestXSSFTable { } @Test - public void testCTTableStyleInfo() throws IOException { + void testCTTableStyleInfo() throws IOException { XSSFWorkbook outputWorkbook = new XSSFWorkbook(); XSSFSheet sheet = outputWorkbook.createSheet(); @@ -298,7 +298,7 @@ public final class TestXSSFTable { } @Test - public void testGetDataRowCount() throws IOException { + void testGetDataRowCount() throws IOException { try (XSSFWorkbook wb = new XSSFWorkbook()) { XSSFSheet sh = wb.createSheet(); AreaReference tableArea = new AreaReference("B2:B6", wb.getSpreadsheetVersion()); @@ -317,7 +317,7 @@ public final class TestXSSFTable { } @Test - public void testSetDataRowCount() throws IOException { + void testSetDataRowCount() throws IOException { try (XSSFWorkbook wb = new XSSFWorkbook()) { XSSFSheet sh = wb.createSheet(); @@ -346,7 +346,7 @@ public final class TestXSSFTable { } @Test - public void testCreateTableIds() throws IOException { + void testCreateTableIds() throws IOException { try (XSSFWorkbook wb = new XSSFWorkbook()) { XSSFSheet sheet = wb.createSheet(); @@ -380,7 +380,7 @@ public final class TestXSSFTable { } @Test - public void testSetArea() throws IOException { + void testSetArea() throws IOException { try (XSSFWorkbook wb = new XSSFWorkbook()) { XSSFSheet sh = wb.createSheet(); @@ -414,7 +414,7 @@ public final class TestXSSFTable { } @Test - public void testCreateColumn() throws IOException { + void testCreateColumn() throws IOException { try (XSSFWorkbook wb = new XSSFWorkbook()) { XSSFSheet sh = wb.createSheet(); @@ -449,7 +449,7 @@ public final class TestXSSFTable { } @Test - public void testCreateColumnInvalidIndex() throws IOException { + void testCreateColumnInvalidIndex() throws IOException { try (XSSFWorkbook wb = new XSSFWorkbook()) { XSSFSheet sh = wb.createSheet(); AreaReference tableArea = new AreaReference("D2:D3", wb.getSpreadsheetVersion()); @@ -463,7 +463,7 @@ public final class TestXSSFTable { } @Test - public void testDifferentHeaderTypes() throws IOException { + void testDifferentHeaderTypes() throws IOException { try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("TablesWithDifferentHeaders.xlsx")) { assertEquals(3, wb.getNumberOfSheets()); XSSFSheet s; @@ -498,7 +498,7 @@ public final class TestXSSFTable { * See https://stackoverflow.com/questions/44407111/apache-poi-cant-format-filled-cells-as-numeric */ @Test - public void testNumericCellsInTable() throws IOException { + void testNumericCellsInTable() throws IOException { try (XSSFWorkbook wb = new XSSFWorkbook()) { XSSFSheet s = wb.createSheet(); @@ -549,7 +549,7 @@ public final class TestXSSFTable { } @Test - public void testSetDisplayName() throws IOException { + void testSetDisplayName() throws IOException { try (XSSFWorkbook wb = new XSSFWorkbook()) { XSSFSheet sheet = wb.createSheet(); @@ -564,7 +564,7 @@ public final class TestXSSFTable { } @Test - public void testSetDisplayNameNull() throws IOException { + void testSetDisplayNameNull() throws IOException { try (XSSFWorkbook wb = new XSSFWorkbook()) { XSSFSheet sheet = wb.createSheet(); @@ -577,7 +577,7 @@ public final class TestXSSFTable { } @Test - public void testSetDisplayNameEmpty() throws IOException { + void testSetDisplayNameEmpty() throws IOException { try (XSSFWorkbook wb = new XSSFWorkbook()) { XSSFSheet sheet = wb.createSheet(); @@ -593,7 +593,7 @@ public final class TestXSSFTable { * Delete table2, and create a named range in sheet0; it should automatically be assigned the name "Table4" */ @Test - public void testBug63401And62906() throws IOException { + void testBug63401And62906() throws IOException { try (XSSFWorkbook workbook = new XSSFWorkbook()) { XSSFSheet sheet0 = workbook.createSheet(); XSSFTable table = addTable(sheet0, 3, 0, 2, 2); Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFTableColumn.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFTableColumn.java?rev=1885283&r1=1885282&r2=1885283&view=diff ============================================================================== --- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFTableColumn.java (original) +++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFTableColumn.java Sat Jan 9 00:46:52 2021 @@ -30,7 +30,7 @@ import org.junit.jupiter.api.Test; public final class TestXSSFTableColumn { @Test - public void testGetColumnName() throws IOException { + void testGetColumnName() throws IOException { try (XSSFWorkbook wb = XSSFTestDataSamples .openSampleWorkbook("CustomXMLMappings-complex-type.xlsx")) { XSSFTable table = wb.getTable("Tabella2"); @@ -46,7 +46,7 @@ public final class TestXSSFTableColumn { } @Test - public void testGetColumnIndex() throws IOException { + void testGetColumnIndex() throws IOException { try (XSSFWorkbook wb = XSSFTestDataSamples .openSampleWorkbook("CustomXMLMappings-complex-type.xlsx")) { XSSFTable table = wb.getTable("Tabella2"); @@ -62,7 +62,7 @@ public final class TestXSSFTableColumn { } @Test - public void testGetXmlColumnPrs() throws IOException { + void testGetXmlColumnPrs() throws IOException { try (XSSFWorkbook wb = XSSFTestDataSamples .openSampleWorkbook("CustomXMLMappings-complex-type.xlsx")) { XSSFTable table = wb.getTable("Tabella2"); Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFTextParagraph.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFTextParagraph.java?rev=1885283&r1=1885282&r2=1885283&view=diff ============================================================================== --- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFTextParagraph.java (original) +++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFTextParagraph.java Sat Jan 9 00:46:52 2021 @@ -26,7 +26,7 @@ import org.junit.jupiter.api.Test; public class TestXSSFTextParagraph { @Test - public void testXSSFTextParagraph() throws IOException { + void testXSSFTextParagraph() throws IOException { try (XSSFWorkbook wb = new XSSFWorkbook()) { XSSFSheet sheet = wb.createSheet(); XSSFDrawing drawing = sheet.createDrawingPatriarch(); Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFTextRun.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFTextRun.java?rev=1885283&r1=1885282&r2=1885283&view=diff ============================================================================== --- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFTextRun.java (original) +++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFTextRun.java Sat Jan 9 00:46:52 2021 @@ -26,7 +26,7 @@ import org.junit.jupiter.api.Test; public class TestXSSFTextRun { @Test - public void testXSSFTextParagraph() throws IOException { + void testXSSFTextParagraph() throws IOException { try (XSSFWorkbook wb = new XSSFWorkbook()) { XSSFSheet sheet = wb.createSheet(); XSSFDrawing drawing = sheet.createDrawingPatriarch(); Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFUnicodeSurrogates.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFUnicodeSurrogates.java?rev=1885283&r1=1885282&r2=1885283&view=diff ============================================================================== --- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFUnicodeSurrogates.java (original) +++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFUnicodeSurrogates.java Sat Jan 9 00:46:52 2021 @@ -43,7 +43,7 @@ public class TestXSSFUnicodeSurrogates { "\uD835\uDF77\uD835\uDF78\uD835\uDF79\uD835\uDF7A"; @Test - public void testWriteUnicodeSurrogates() throws IOException { + void testWriteUnicodeSurrogates() throws IOException { String sheetName = "Sheet1"; File tf = TempFile.createTempFile("poi-xmlbeans-test", ".xlsx"); try (XSSFWorkbook wb = new XSSFWorkbook()) { Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFVMLDrawing.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFVMLDrawing.java?rev=1885283&r1=1885282&r2=1885283&view=diff ============================================================================== --- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFVMLDrawing.java (original) +++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFVMLDrawing.java Sat Jan 9 00:46:52 2021 @@ -56,7 +56,7 @@ import org.openxmlformats.schemas.office public class TestXSSFVMLDrawing { @Test - public void testNew() throws IOException, XmlException { + void testNew() throws IOException, XmlException { XSSFVMLDrawing vml = new XSSFVMLDrawing(); List<XmlObject> items = vml.getItems(); assertEquals(2, items.size()); @@ -116,7 +116,7 @@ public class TestXSSFVMLDrawing { } @Test - public void testFindCommentShape() throws IOException, XmlException { + void testFindCommentShape() throws IOException, XmlException { XSSFVMLDrawing vml = new XSSFVMLDrawing(); try (InputStream stream = POIDataSamples.getSpreadSheetInstance().openResourceAsStream("vmlDrawing1.vml")) { @@ -152,7 +152,7 @@ public class TestXSSFVMLDrawing { } @Test - public void testRemoveCommentShape() throws IOException, XmlException { + void testRemoveCommentShape() throws IOException, XmlException { XSSFVMLDrawing vml = new XSSFVMLDrawing(); try (InputStream stream = POIDataSamples.getSpreadSheetInstance().openResourceAsStream("vmlDrawing1.vml")) { vml.read(stream); @@ -167,7 +167,7 @@ public class TestXSSFVMLDrawing { } @Test - public void testEvilUnclosedBRFixing() throws IOException, XmlException { + void testEvilUnclosedBRFixing() throws IOException, XmlException { XSSFVMLDrawing vml = new XSSFVMLDrawing(); try (InputStream stream = POIDataSamples.getOpenXML4JInstance().openResourceAsStream("bug-60626.vml")) { vml.read(stream); Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFWorkbook.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFWorkbook.java?rev=1885283&r1=1885282&r2=1885283&view=diff ============================================================================== --- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFWorkbook.java (original) +++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFWorkbook.java Sat Jan 9 00:46:52 2021 @@ -744,7 +744,7 @@ public final class TestXSSFWorkbook ext } @Test - public void testAddPivotCache() throws IOException { + void testAddPivotCache() throws IOException { try (XSSFWorkbook wb = new XSSFWorkbook()) { CTWorkbook ctWb = wb.getCTWorkbook(); CTPivotCache pivotCache = wb.addPivotCache("0"); @@ -788,7 +788,7 @@ public final class TestXSSFWorkbook ext } @Test - public void testLoadWorkbookWithPivotTable() throws Exception { + void testLoadWorkbookWithPivotTable() throws Exception { File file = TempFile.createTempFile("ooxml-pivottable", ".xlsx"); try (XSSFWorkbook wb = new XSSFWorkbook()) { @@ -807,7 +807,7 @@ public final class TestXSSFWorkbook ext } @Test - public void testAddPivotTableToWorkbookWithLoadedPivotTable() throws Exception { + void testAddPivotTableToWorkbookWithLoadedPivotTable() throws Exception { File file = TempFile.createTempFile("ooxml-pivottable", ".xlsx"); try (XSSFWorkbook wb = new XSSFWorkbook()) { @@ -827,7 +827,7 @@ public final class TestXSSFWorkbook ext } @Test - public void testSetFirstVisibleTab_57373() throws IOException { + void testSetFirstVisibleTab_57373() throws IOException { try (Workbook wb = new XSSFWorkbook()) { /*Sheet sheet1 =*/ @@ -866,7 +866,7 @@ public final class TestXSSFWorkbook ext * Tests that we can save a workbook with macros and reload it. */ @Test - public void testSetVBAProject() throws Exception { + void testSetVBAProject() throws Exception { File file; final byte[] allBytes = new byte[256]; for (int i = 0; i < 256; i++) { @@ -907,7 +907,7 @@ public final class TestXSSFWorkbook ext } @Test - public void testBug54399() throws IOException { + void testBug54399() throws IOException { XSSFWorkbook workbook = XSSFTestDataSamples.openSampleWorkbook("54399.xlsx"); for (int i = 0; i < workbook.getNumberOfSheets(); i++) { @@ -985,7 +985,7 @@ public final class TestXSSFWorkbook ext } @Test - public void testBug56957CloseWorkbook() throws Exception { + void testBug56957CloseWorkbook() throws Exception { File file = TempFile.createTempFile("TestBug56957_", ".xlsx"); final Date dateExp = LocaleUtil.getLocaleCalendar(2014, 10, 9).getTime(); @@ -1051,7 +1051,7 @@ public final class TestXSSFWorkbook ext } @Test - public void testCloseBeforeWrite() throws IOException { + void testCloseBeforeWrite() throws IOException { try (Workbook wb = new XSSFWorkbook()) { wb.createSheet("somesheet"); @@ -1102,7 +1102,7 @@ public final class TestXSSFWorkbook ext @SuppressWarnings("deprecation") @Test - public void testRemoveSheet() throws IOException { + void testRemoveSheet() throws IOException { // Test removing a sheet maintains the named ranges correctly XSSFWorkbook wb = new XSSFWorkbook(); wb.createSheet("Sheet1"); @@ -1145,7 +1145,7 @@ public final class TestXSSFWorkbook ext * See bug #61700 */ @Test - public void testWorkbookForceFormulaRecalculation() throws Exception { + void testWorkbookForceFormulaRecalculation() throws Exception { Workbook workbook = _testDataProvider.createWorkbook(); workbook.createSheet().createRow(0).createCell(0).setCellFormula("B1+C1"); workbook.getCreationHelper().createFormulaEvaluator().evaluateAll(); Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/charts/TestXDDFChartLegend.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/charts/TestXDDFChartLegend.java?rev=1885283&r1=1885282&r2=1885283&view=diff ============================================================================== --- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/charts/TestXDDFChartLegend.java (original) +++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/charts/TestXDDFChartLegend.java Sat Jan 9 00:46:52 2021 @@ -37,7 +37,7 @@ import org.junit.jupiter.api.Test; */ public final class TestXDDFChartLegend { @Test - public void testLegendPositionAccessMethods() throws IOException { + void testLegendPositionAccessMethods() throws IOException { XSSFWorkbook wb = new XSSFWorkbook(); XSSFSheet sheet = wb.createSheet(); XSSFDrawing drawing = sheet.createDrawingPatriarch(); @@ -52,7 +52,7 @@ public final class TestXDDFChartLegend { } @Test - public void test_setOverlay_defaultChartLegend_expectOverlayInitialValueSetToFalse() throws IOException { + void test_setOverlay_defaultChartLegend_expectOverlayInitialValueSetToFalse() throws IOException { // Arrange XSSFWorkbook wb = new XSSFWorkbook(); XSSFSheet sheet = wb.createSheet(); @@ -70,7 +70,7 @@ public final class TestXDDFChartLegend { } @Test - public void test_setOverlay_chartLegendSetToTrue_expectOverlayInitialValueSetToTrue() throws IOException { + void test_setOverlay_chartLegendSetToTrue_expectOverlayInitialValueSetToTrue() throws IOException { // Arrange XSSFWorkbook wb = new XSSFWorkbook(); XSSFSheet sheet = wb.createSheet(); Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/charts/TestXDDFManualLayout.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/charts/TestXDDFManualLayout.java?rev=1885283&r1=1885282&r2=1885283&view=diff ============================================================================== --- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/charts/TestXDDFManualLayout.java (original) +++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/charts/TestXDDFManualLayout.java Sat Jan 9 00:46:52 2021 @@ -60,7 +60,7 @@ public final class TestXDDFManualLayout * initialization so there can be some errors (NPE, for example). */ @Test - public void testAccessorMethods() { + void testAccessorMethods() { final double newRatio = 1.1; final double newCoordinate = 0.3; final LayoutMode nonDefaultMode = LayoutMode.FACTOR; @@ -100,7 +100,7 @@ public final class TestXDDFManualLayout * any exceptions. */ @Test - public void testDefaultValues() { + void testDefaultValues() { assertNotNull(layout.getTarget()); assertNotNull(layout.getXMode()); assertNotNull(layout.getYMode()); Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/charts/TestXSSF3DChartData.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/charts/TestXSSF3DChartData.java?rev=1885283&r1=1885282&r2=1885283&view=diff ============================================================================== --- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/charts/TestXSSF3DChartData.java (original) +++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/charts/TestXSSF3DChartData.java Sat Jan 9 00:46:52 2021 @@ -55,7 +55,7 @@ public class TestXSSF3DChartData { }; @Test - public void testArea3D() throws IOException { + void testArea3D() throws IOException { // This test currently doesn't produce a valid area 3d chart and is only used to test accessors try (XSSFWorkbook wb = new XSSFWorkbook()) { XSSFSheet sheet = (XSSFSheet) new SheetBuilder(wb, plotData).build(); Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/charts/TestXSSFCategoryAxis.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/charts/TestXSSFCategoryAxis.java?rev=1885283&r1=1885282&r2=1885283&view=diff ============================================================================== --- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/charts/TestXSSFCategoryAxis.java (original) +++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/charts/TestXSSFCategoryAxis.java Sat Jan 9 00:46:52 2021 @@ -31,7 +31,7 @@ import org.junit.jupiter.api.Test; public final class TestXSSFCategoryAxis { @Test - public void testAccessMethods() throws Exception { + void testAccessMethods() throws Exception { try (XSSFWorkbook wb = new XSSFWorkbook()) { XSSFSheet sheet = wb.createSheet(); XSSFDrawing drawing = sheet.createDrawingPatriarch(); Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/charts/TestXSSFChartAxis.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/charts/TestXSSFChartAxis.java?rev=1885283&r1=1885282&r2=1885283&view=diff ============================================================================== --- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/charts/TestXSSFChartAxis.java (original) +++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/charts/TestXSSFChartAxis.java Sat Jan 9 00:46:52 2021 @@ -62,7 +62,7 @@ public final class TestXSSFChartAxis { } @Test - public void testLogBaseIllegalArgument() { + void testLogBaseIllegalArgument() { IllegalArgumentException iae = null; try { axis.setLogBase(0.0); @@ -81,20 +81,20 @@ public final class TestXSSFChartAxis { } @Test - public void testLogBaseLegalArgument() { + void testLogBaseLegalArgument() { axis.setLogBase(Math.E); assertTrue(Math.abs(axis.getLogBase() - Math.E) < EPSILON); } @Test - public void testNumberFormat() { + void testNumberFormat() { final String numberFormat = "General"; axis.setNumberFormat(numberFormat); assertEquals(numberFormat, axis.getNumberFormat()); } @Test - public void testMaxAndMinAccessMethods() { + void testMaxAndMinAccessMethods() { final double newValue = 10.0; axis.setMinimum(newValue); @@ -105,7 +105,7 @@ public final class TestXSSFChartAxis { } @Test - public void testVisibleAccessMethods() { + void testVisibleAccessMethods() { axis.setVisible(true); assertTrue(axis.isVisible()); @@ -114,7 +114,7 @@ public final class TestXSSFChartAxis { } @Test - public void testMajorTickMarkAccessMethods() { + void testMajorTickMarkAccessMethods() { axis.setMajorTickMark(AxisTickMark.NONE); assertEquals(AxisTickMark.NONE, axis.getMajorTickMark()); @@ -129,7 +129,7 @@ public final class TestXSSFChartAxis { } @Test - public void testMinorTickMarkAccessMethods() { + void testMinorTickMarkAccessMethods() { axis.setMinorTickMark(AxisTickMark.NONE); assertEquals(AxisTickMark.NONE, axis.getMinorTickMark()); @@ -144,7 +144,7 @@ public final class TestXSSFChartAxis { } @Test - public void testGetChartAxisBug57362() throws IOException { + void testGetChartAxisBug57362() throws IOException { //Load existing excel with some chart on it having primary and secondary axis. try (final XSSFWorkbook workbook = XSSFTestDataSamples.openSampleWorkbook("57362.xlsx")) { final XSSFSheet sh = workbook.getSheetAt(0); Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/charts/TestXSSFChartTitle.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/charts/TestXSSFChartTitle.java?rev=1885283&r1=1885282&r2=1885283&view=diff ============================================================================== --- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/charts/TestXSSFChartTitle.java (original) +++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/charts/TestXSSFChartTitle.java Sat Jan 9 00:46:52 2021 @@ -111,7 +111,7 @@ public class TestXSSFChartTitle { } @Test - public void testNewChart() throws IOException { + void testNewChart() throws IOException { XSSFWorkbook wb = createWorkbookWithChart(); XSSFChart chart = getChartFromWorkbook(wb, "linechart"); assertNotNull(chart); @@ -133,7 +133,7 @@ public class TestXSSFChartTitle { } @Test - public void testExistingChartWithTitle() throws IOException { + void testExistingChartWithTitle() throws IOException { XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("chartTitle_withTitle.xlsx"); XSSFChart chart = getChartFromWorkbook(wb, "Sheet1"); assertNotNull(chart); @@ -150,7 +150,7 @@ public class TestXSSFChartTitle { } @Test - public void testExistingChartNoTitle() throws IOException { + void testExistingChartNoTitle() throws IOException { XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("chartTitle_noTitle.xlsx"); XSSFChart chart = getChartFromWorkbook(wb, "Sheet1"); assertNotNull(chart); @@ -165,7 +165,7 @@ public class TestXSSFChartTitle { } @Test - public void testExistingChartWithFormulaTitle() throws IOException { + void testExistingChartWithFormulaTitle() throws IOException { XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("chartTitle_withTitleFormula.xlsx"); XSSFChart chart = getChartFromWorkbook(wb, "Sheet1"); assertNotNull(chart); @@ -179,7 +179,7 @@ public class TestXSSFChartTitle { } @Test - public void testRemovingFromExistingChartNoTitle() throws IOException { + void testRemovingFromExistingChartNoTitle() throws IOException { XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("chartTitle_noTitle.xlsx"); XSSFChart chart = getChartFromWorkbook(wb, "Sheet1"); assertNotNull(chart); @@ -192,7 +192,7 @@ public class TestXSSFChartTitle { } @Test - public void testRemovingFromExistingChartWithTitle() throws IOException { + void testRemovingFromExistingChartWithTitle() throws IOException { XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("chartTitle_withTitle.xlsx"); XSSFChart chart = getChartFromWorkbook(wb, "Sheet1"); assertNotNull(chart); Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/charts/TestXSSFDateAxis.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/charts/TestXSSFDateAxis.java?rev=1885283&r1=1885282&r2=1885283&view=diff ============================================================================== --- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/charts/TestXSSFDateAxis.java (original) +++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/charts/TestXSSFDateAxis.java Sat Jan 9 00:46:52 2021 @@ -32,7 +32,7 @@ import org.junit.jupiter.api.Test; public final class TestXSSFDateAxis { @Test - public void testAccessMethods() throws Exception { + void testAccessMethods() throws Exception { try (XSSFWorkbook wb = new XSSFWorkbook()) { XSSFSheet sheet = wb.createSheet(); XSSFDrawing drawing = sheet.createDrawingPatriarch(); Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/charts/TestXSSFLineChartData.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/charts/TestXSSFLineChartData.java?rev=1885283&r1=1885282&r2=1885283&view=diff ============================================================================== --- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/charts/TestXSSFLineChartData.java (original) +++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/charts/TestXSSFLineChartData.java Sat Jan 9 00:46:52 2021 @@ -50,7 +50,7 @@ public class TestXSSFLineChartData { }; @Test - public void testOneSeriePlot() throws IOException { + void testOneSeriePlot() throws IOException { XSSFWorkbook wb = new XSSFWorkbook(); XSSFSheet sheet = (XSSFSheet) new SheetBuilder(wb, plotData).build(); XSSFDrawing drawing = sheet.createDrawingPatriarch(); Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/charts/TestXSSFScatterChartData.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/charts/TestXSSFScatterChartData.java?rev=1885283&r1=1885282&r2=1885283&view=diff ============================================================================== --- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/charts/TestXSSFScatterChartData.java (original) +++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/charts/TestXSSFScatterChartData.java Sat Jan 9 00:46:52 2021 @@ -52,7 +52,7 @@ public final class TestXSSFScatterChartD }; @Test - public void testOneSeriePlot() throws IOException { + void testOneSeriePlot() throws IOException { XSSFWorkbook wb = new XSSFWorkbook(); XSSFSheet sheet = (XSSFSheet) new SheetBuilder(wb, plotData).build(); XSSFDrawing drawing = sheet.createDrawingPatriarch(); Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/charts/TestXSSFValueAxis.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/charts/TestXSSFValueAxis.java?rev=1885283&r1=1885282&r2=1885283&view=diff ============================================================================== --- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/charts/TestXSSFValueAxis.java (original) +++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/charts/TestXSSFValueAxis.java Sat Jan 9 00:46:52 2021 @@ -33,7 +33,7 @@ import org.junit.jupiter.api.Test; public final class TestXSSFValueAxis { @Test - public void testAccessMethods() throws Exception { + void testAccessMethods() throws Exception { try (XSSFWorkbook wb = new XSSFWorkbook()) { XSSFSheet sheet = wb.createSheet(); XSSFDrawing drawing = sheet.createDrawingPatriarch(); Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/extensions/TestXSSFBorder.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/extensions/TestXSSFBorder.java?rev=1885283&r1=1885282&r2=1885283&view=diff ============================================================================== --- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/extensions/TestXSSFBorder.java (original) +++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/extensions/TestXSSFBorder.java Sat Jan 9 00:46:52 2021 @@ -31,7 +31,7 @@ import org.openxmlformats.schemas.spread public class TestXSSFBorder { @Test - public void testGetBorderStyle() { + void testGetBorderStyle() { CTStylesheet stylesheet = CTStylesheet.Factory.newInstance(); CTBorder border = stylesheet.addNewBorders().addNewBorder(); CTBorderPr top = border.addNewTop(); Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/extensions/TestXSSFCellFill.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/extensions/TestXSSFCellFill.java?rev=1885283&r1=1885282&r2=1885283&view=diff ============================================================================== --- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/extensions/TestXSSFCellFill.java (original) +++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/extensions/TestXSSFCellFill.java Sat Jan 9 00:46:52 2021 @@ -40,7 +40,7 @@ import org.openxmlformats.schemas.spread public class TestXSSFCellFill { @Test - public void testGetFillBackgroundColor() { + void testGetFillBackgroundColor() { CTFill ctFill = CTFill.Factory.newInstance(); XSSFCellFill cellFill = new XSSFCellFill(ctFill, null); CTPatternFill ctPatternFill = ctFill.addNewPatternFill(); @@ -51,7 +51,7 @@ public class TestXSSFCellFill { } @Test - public void testGetFillForegroundColor() { + void testGetFillForegroundColor() { CTFill ctFill = CTFill.Factory.newInstance(); XSSFCellFill cellFill = new XSSFCellFill(ctFill, null); CTPatternFill ctPatternFill = ctFill.addNewPatternFill(); @@ -62,7 +62,7 @@ public class TestXSSFCellFill { } @Test - public void testGetSetPatternType() { + void testGetSetPatternType() { CTFill ctFill = CTFill.Factory.newInstance(); XSSFCellFill cellFill = new XSSFCellFill(ctFill, null); CTPatternFill ctPatternFill = ctFill.addNewPatternFill(); @@ -73,7 +73,7 @@ public class TestXSSFCellFill { } @Test - public void testGetNotModifies() { + void testGetNotModifies() { CTFill ctFill = CTFill.Factory.newInstance(); XSSFCellFill cellFill = new XSSFCellFill(ctFill, null); CTPatternFill ctPatternFill = ctFill.addNewPatternFill(); @@ -84,7 +84,7 @@ public class TestXSSFCellFill { } @Test - public void testColorFromTheme() throws IOException { + void testColorFromTheme() throws IOException { try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("styles.xlsx")) { XSSFCell cellWithThemeColor = wb.getSheetAt(0).getRow(10).getCell(0); //color RGB will be extracted from theme @@ -106,7 +106,7 @@ public class TestXSSFCellFill { } @Test - public void testFillWithoutColors() throws IOException { + void testFillWithoutColors() throws IOException { try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("FillWithoutColor.xlsx")) { XSSFCell cellWithFill = wb.getSheetAt(0).getRow(5).getCell(1); XSSFCellStyle style = cellWithFill.getCellStyle(); Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/extensions/TestXSSFHeaderFooter.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/extensions/TestXSSFHeaderFooter.java?rev=1885283&r1=1885282&r2=1885283&view=diff ============================================================================== --- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/extensions/TestXSSFHeaderFooter.java (original) +++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/extensions/TestXSSFHeaderFooter.java Sat Jan 9 00:46:52 2021 @@ -61,7 +61,7 @@ public class TestXSSFHeaderFooter { } @Test - public void testGetHeaderFooter() { + void testGetHeaderFooter() { CTHeaderFooter ctHf; ctHf = hO.getHeaderFooter(); assertNotNull(ctHf); @@ -78,7 +78,7 @@ public class TestXSSFHeaderFooter { } @Test - public void testGetValue() { + void testGetValue() { assertEquals("", hO.getValue()); assertEquals("", hE.getValue()); assertEquals("", hF.getValue()); @@ -112,15 +112,15 @@ public class TestXSSFHeaderFooter { } @Disabled("Test not yet created") - public void testAreFieldsStripped() { + void testAreFieldsStripped() { } @Disabled("Test not yet created") - public void testSetAreFieldsStripped() { + void testSetAreFieldsStripped() { } @Test - public void testStripFields() { + void testStripFields() { String simple = "I am a test header"; String withPage = "I am a&P test header"; String withLots = "I&A am&N a&P test&T header&U"; @@ -157,7 +157,7 @@ public class TestXSSFHeaderFooter { } @Test - public void testGetCenter() { + void testGetCenter() { assertEquals("", hO.getCenter()); assertEquals("", hE.getCenter()); assertEquals("", hF.getCenter()); @@ -179,7 +179,7 @@ public class TestXSSFHeaderFooter { } @Test - public void testGetLeft() { + void testGetLeft() { assertEquals("", hO.getLeft()); assertEquals("", hE.getLeft()); assertEquals("", hF.getLeft()); @@ -201,7 +201,7 @@ public class TestXSSFHeaderFooter { } @Test - public void testGetRight() { + void testGetRight() { assertEquals("", hO.getValue()); assertEquals("", hE.getValue()); assertEquals("", hF.getValue()); @@ -223,7 +223,7 @@ public class TestXSSFHeaderFooter { } @Test - public void testSetCenter() { + void testSetCenter() { assertEquals("", hO.getValue()); assertEquals("", hE.getValue()); assertEquals("", hF.getValue()); @@ -245,7 +245,7 @@ public class TestXSSFHeaderFooter { } @Test - public void testSetLeft() { + void testSetLeft() { assertEquals("", hO.getValue()); assertEquals("", hE.getValue()); assertEquals("", hF.getValue()); @@ -267,7 +267,7 @@ public class TestXSSFHeaderFooter { } @Test - public void testSetRight() { + void testSetRight() { assertEquals("", hO.getValue()); assertEquals("", hE.getValue()); assertEquals("", hF.getValue()); @@ -291,7 +291,7 @@ public class TestXSSFHeaderFooter { @Test - public void testGetSetCenterLeftRight() { + void testGetSetCenterLeftRight() { assertEquals("", fO.getCenter()); fO.setCenter("My first center section"); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@poi.apache.org For additional commands, e-mail: commits-h...@poi.apache.org