Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/converter/TestWordToTextConverter.java URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/converter/TestWordToTextConverter.java?rev=1885302&r1=1885301&r2=1885302&view=diff ============================================================================== --- poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/converter/TestWordToTextConverter.java (original) +++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/converter/TestWordToTextConverter.java Sat Jan 9 15:49:35 2021 @@ -29,7 +29,7 @@ public class TestWordToTextConverter { * website as an embedded object */ @Test - public void testBug47731() throws Exception { + void testBug47731() throws Exception { try (HWPFDocument doc = openSampleFile( "Bug47731.doc" )) { String foundText = WordToTextConverter.getText(doc); @@ -38,7 +38,7 @@ public class TestWordToTextConverter { } @Test - public void testBug52311() throws Exception { + void testBug52311() throws Exception { try (HWPFDocument doc = openSampleFile( "Bug52311.doc" )) { String result = WordToTextConverter.getText(doc); @@ -54,7 +54,7 @@ public class TestWordToTextConverter { } @Test - public void testBug53380_3() throws Exception { + void testBug53380_3() throws Exception { try (HWPFDocument doc = openSampleFile( "Bug53380_3.doc" )) { WordToTextConverter.getText(doc); }
Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/extractor/TestDifferentRoutes.java URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/extractor/TestDifferentRoutes.java?rev=1885302&r1=1885301&r2=1885302&view=diff ============================================================================== --- poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/extractor/TestDifferentRoutes.java (original) +++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/extractor/TestDifferentRoutes.java Sat Jan 9 15:49:35 2021 @@ -70,7 +70,7 @@ public final class TestDifferentRoutes { * Test model based extraction */ @Test - public void testExtractFromModel() { + void testExtractFromModel() { Range r = doc.getRange(); String[] text = new String[r.numParagraphs()]; @@ -86,7 +86,7 @@ public final class TestDifferentRoutes { * Test textPieces based extraction */ @Test - public void testExtractFromTextPieces() throws Exception { + void testExtractFromTextPieces() throws Exception { String expected = StringUtil.join(p_text, ""); assertEquals(expected, doc.getDocumentText()); } Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/extractor/TestWordExtractor.java URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/extractor/TestWordExtractor.java?rev=1885302&r1=1885301&r2=1885302&view=diff ============================================================================== --- poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/extractor/TestWordExtractor.java (original) +++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/extractor/TestWordExtractor.java Sat Jan 9 15:49:35 2021 @@ -84,7 +84,7 @@ public final class TestWordExtractor { * Test paragraph based extraction */ @Test - public void testExtractFromParagraphs() throws IOException { + void testExtractFromParagraphs() throws IOException { WordExtractor extractor = openExtractor("test2.doc"); String[] text = extractor.getParagraphText(); @@ -107,7 +107,7 @@ public final class TestWordExtractor { * Test the paragraph -> flat extraction */ @Test - public void testGetText() throws IOException { + void testGetText() throws IOException { WordExtractor extractor = openExtractor("test2.doc"); assertEqualsTrim(p_text1_block, extractor.getText()); @@ -125,7 +125,7 @@ public final class TestWordExtractor { * Test textPieces based extraction */ @Test - public void testExtractFromTextPieces() throws IOException { + void testExtractFromTextPieces() throws IOException { WordExtractor extractor = openExtractor("test2.doc"); String text = extractor.getTextFromPieces(); assertEquals(p_text1_block, text); @@ -137,7 +137,7 @@ public final class TestWordExtractor { * Test that we can get data from two different embedded word documents */ @Test - public void testExtractFromEmbeded() throws IOException { + void testExtractFromEmbeded() throws IOException { InputStream is = POIDataSamples.getSpreadSheetInstance().openResourceAsStream("excel_with_embeded.xls"); POIFSFileSystem fs = new POIFSFileSystem(is); is.close(); @@ -181,7 +181,7 @@ public final class TestWordExtractor { } @Test - public void testWithHeader() throws IOException { + void testWithHeader() throws IOException { // Non-unicode HWPFDocument doc1 = HWPFTestDataSamples.openSampleFile("ThreeColHeadFoot.doc"); WordExtractor extractor1 = new WordExtractor(doc1); @@ -204,7 +204,7 @@ public final class TestWordExtractor { } @Test - public void testWithFooter() throws IOException { + void testWithFooter() throws IOException { // Non-unicode HWPFDocument doc1 = HWPFTestDataSamples.openSampleFile("ThreeColHeadFoot.doc"); WordExtractor extractor1 = new WordExtractor(doc1); @@ -227,7 +227,7 @@ public final class TestWordExtractor { } @Test - public void testFootnote() throws IOException { + void testFootnote() throws IOException { HWPFDocument doc = HWPFTestDataSamples.openSampleFile("footnote.doc"); WordExtractor extractor = new WordExtractor(doc); @@ -241,7 +241,7 @@ public final class TestWordExtractor { } @Test - public void testEndnote() throws IOException { + void testEndnote() throws IOException { HWPFDocument doc = HWPFTestDataSamples.openSampleFile("footnote.doc"); WordExtractor extractor = new WordExtractor(doc); @@ -255,20 +255,20 @@ public final class TestWordExtractor { } @Test - public void testComments() throws IOException { + void testComments() throws IOException { WordExtractor extractor = openExtractor("footnote.doc"); assertExtractedContains(extractor.getCommentsText(), "TestComment"); extractor.close(); } @Test - public void testWord95_WordExtractor() { + void testWord95_WordExtractor() { // Too old for the default assertThrows(OldWordFileFormatException.class, () -> openExtractor("Word95.doc")); } @Test - public void testWord95() throws Exception { + void testWord95() throws Exception { // Can work with the special one InputStream is = docTests.openResourceAsStream("Word95.doc"); Word6Extractor w6e = new Word6Extractor(is); @@ -295,13 +295,13 @@ public final class TestWordExtractor { } @Test - public void testWord6_WordExtractor() { + void testWord6_WordExtractor() { // Too old for the default assertThrows(OldWordFileFormatException.class, () -> openExtractor("Word6.doc")); } @Test - public void testWord6() throws Exception { + void testWord6() throws Exception { try (InputStream is = docTests.openResourceAsStream("Word6.doc"); Word6Extractor w6e = new Word6Extractor(is)) { String text = w6e.getText(); @@ -316,7 +316,7 @@ public final class TestWordExtractor { } @Test - public void testFastSaved() throws Exception { + void testFastSaved() throws Exception { WordExtractor extractor = openExtractor("rasp.doc"); String text = extractor.getText(); @@ -327,7 +327,7 @@ public final class TestWordExtractor { } @Test - public void testFirstParagraphFix() throws Exception { + void testFirstParagraphFix() throws Exception { WordExtractor extractor = openExtractor("Bug48075.doc"); String text = extractor.getText(); @@ -341,7 +341,7 @@ public final class TestWordExtractor { * and {@link POIFSFileSystem} */ @Test - public void testDifferentPOIFS() throws Exception { + void testDifferentPOIFS() throws Exception { // Open the two filesystems File file = docTests.getFile("test2.doc"); try (POIFSFileSystem poifs = new POIFSFileSystem(file, true)) { @@ -368,7 +368,7 @@ public final class TestWordExtractor { * ConcurrentModificationException in Tika's OfficeParser */ @Test - public void testBug51686() throws IOException { + void testBug51686() throws IOException { InputStream is = docTests.openResourceAsStream( "Bug51686.doc" ); POIFSFileSystem fs = new POIFSFileSystem(is); is.close(); @@ -388,7 +388,7 @@ public final class TestWordExtractor { } @Test - public void testExtractorFromWord6Extractor() throws Exception { + void testExtractorFromWord6Extractor() throws Exception { try (InputStream is = POIDataSamples.getHPSFInstance().openResourceAsStream("TestMickey.doc"); POIFSFileSystem fs = new POIFSFileSystem(is); Word6Extractor wExt = new Word6Extractor(fs); Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/extractor/TestWordExtractorBugs.java URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/extractor/TestWordExtractorBugs.java?rev=1885302&r1=1885301&r2=1885302&view=diff ============================================================================== --- poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/extractor/TestWordExtractorBugs.java (original) +++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/extractor/TestWordExtractorBugs.java Sat Jan 9 15:49:35 2021 @@ -35,7 +35,7 @@ public final class TestWordExtractorBugs private static final POIDataSamples SAMPLES = POIDataSamples.getDocumentInstance(); @Test - public void testProblemMetadata() throws IOException { + void testProblemMetadata() throws IOException { InputStream is = SAMPLES.openResourceAsStream("ProblemExtracting.doc"); WordExtractor extractor = new WordExtractor(is); is.close(); @@ -48,7 +48,7 @@ public final class TestWordExtractorBugs } @Test - public void testBug50688() throws Exception { + void testBug50688() throws Exception { InputStream is = SAMPLES.openResourceAsStream("parentinvguid.doc"); WordExtractor extractor = new WordExtractor(is); is.close(); @@ -59,7 +59,7 @@ public final class TestWordExtractorBugs } @Test - public void testBug60374() throws Exception { + void testBug60374() throws Exception { POIFSFileSystem fs = new POIFSFileSystem(SAMPLES.openResourceAsStream("cn.orthodox.www_divenbog_APRIL_30-APRIL.DOC")); final POITextExtractor extractor = ExtractorFactory.createExtractor(fs); Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/PlfLfoTest.java URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/PlfLfoTest.java?rev=1885302&r1=1885301&r2=1885302&view=diff ============================================================================== --- poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/PlfLfoTest.java (original) +++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/PlfLfoTest.java Sat Jan 9 15:49:35 2021 @@ -26,7 +26,7 @@ import org.junit.jupiter.api.Test; public class PlfLfoTest { @Test - public void testAdd() { + void testAdd() { PlfLfo p = new PlfLfo(new byte[] {0, 0, 0, 0}, 0, 0); assertEquals(0, p.getLfoMac()); p.add(new LFO(new byte[] {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, 0), new LFOData()); @@ -36,7 +36,7 @@ public class PlfLfoTest { } @Test - public void testEquals() { + void testEquals() { PlfLfo p = new PlfLfo(new byte[] {0, 0, 0, 0}, 0, 0); PlfLfo p2 = new PlfLfo(new byte[] {0, 0, 0, 0}, 0, 0); assertEquals(0, p.getLfoMac()); Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestBookmarksTables.java URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestBookmarksTables.java?rev=1885302&r1=1885301&r2=1885302&view=diff ============================================================================== --- poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestBookmarksTables.java (original) +++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestBookmarksTables.java Sat Jan 9 15:49:35 2021 @@ -33,7 +33,7 @@ import org.junit.jupiter.api.Test; */ public class TestBookmarksTables { @Test - public void test() throws IOException { + void test() throws IOException { try (HWPFDocument doc = openSampleFile( "pageref.doc" )) { Bookmarks bookmarks = doc.getBookmarks(); @@ -47,7 +47,7 @@ public class TestBookmarksTables { } @Test - public void testDeleteRange() throws IOException { + void testDeleteRange() throws IOException { try (HWPFDocument doc = openSampleFile( "pageref.doc" )) { Range range = new Range(27, 41, doc); range.delete(); @@ -57,7 +57,7 @@ public class TestBookmarksTables { } @Test - public void testReplaceTextAfter() throws IOException { + void testReplaceTextAfter() throws IOException { try (HWPFDocument doc = openSampleFile( "pageref.doc" )) { Bookmark bookmark = doc.getBookmarks().getBookmark(0); Range range = new Range(bookmark.getStart(), bookmark.getEnd(), doc); @@ -71,7 +71,7 @@ public class TestBookmarksTables { } @Test - public void testReplaceTextBefore() throws IOException { + void testReplaceTextBefore() throws IOException { try (HWPFDocument doc = openSampleFile( "pageref.doc" )) { Bookmark bookmark = doc.getBookmarks().getBookmark(0); Range range = new Range(bookmark.getStart(), bookmark.getEnd(), doc); @@ -85,7 +85,7 @@ public class TestBookmarksTables { } @Test - public void testUpdateText() throws IOException { + void testUpdateText() throws IOException { try (HWPFDocument doc = openSampleFile( "pageref.doc" )) { Bookmark bookmark = doc.getBookmarks().getBookmark(0); Range range = new Range(bookmark.getStart(), bookmark.getEnd(), doc); Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestCHPBinTable.java URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestCHPBinTable.java?rev=1885302&r1=1885301&r2=1885302&view=diff ============================================================================== --- poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestCHPBinTable.java (original) +++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestCHPBinTable.java Sat Jan 9 15:49:35 2021 @@ -40,7 +40,7 @@ public final class TestCHPBinTable { }; @Test - public void testReadWrite() throws Exception { + void testReadWrite() throws Exception { FileInformationBlock fib = _hWPFDocFixture._fib; byte[] mainStream = _hWPFDocFixture._mainStream; byte[] tableStream = _hWPFDocFixture._tableStream; Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestDocumentProperties.java URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestDocumentProperties.java?rev=1885302&r1=1885301&r2=1885302&view=diff ============================================================================== --- poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestDocumentProperties.java (original) +++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestDocumentProperties.java Sat Jan 9 15:49:35 2021 @@ -47,7 +47,7 @@ public final class TestDocumentPropertie } @Test - public void testReadWrite() throws Exception { + void testReadWrite() throws Exception { int size = DOPAbstractType.getSize(); byte[] buf = new byte[size]; _documentProperties.serialize(buf, 0); Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestFileInformationBlock.java URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestFileInformationBlock.java?rev=1885302&r1=1885301&r2=1885302&view=diff ============================================================================== --- poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestFileInformationBlock.java (original) +++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestFileInformationBlock.java Sat Jan 9 15:49:35 2021 @@ -30,7 +30,7 @@ public final class TestFileInformationBl private HWPFDocFixture _hWPFDocFixture; @Test - public void testReadWrite() throws Exception { + void testReadWrite() throws Exception { final FibBase expected = _fileInformationBlock.getFibBase(); int size = _fileInformationBlock.getSize(); byte[] buf = new byte[size]; Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestFontTable.java URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestFontTable.java?rev=1885302&r1=1885301&r2=1885302&view=diff ============================================================================== --- poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestFontTable.java (original) +++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestFontTable.java Sat Jan 9 15:49:35 2021 @@ -33,7 +33,7 @@ public final class TestFontTable { private HWPFDocFixture _hWPFDocFixture; @Test - public void testReadWrite() throws IOException { + void testReadWrite() throws IOException { FileInformationBlock fib = _hWPFDocFixture._fib; byte[] tableStream = _hWPFDocFixture._tableStream; Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestListTables.java URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestListTables.java?rev=1885302&r1=1885301&r2=1885302&view=diff ============================================================================== --- poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestListTables.java (original) +++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestListTables.java Sat Jan 9 15:49:35 2021 @@ -29,7 +29,7 @@ import org.junit.jupiter.api.Test; public final class TestListTables extends HWPFTestCase { @Test - public void testReadWrite() throws IOException { + void testReadWrite() throws IOException { FileInformationBlock fib = _hWPFDocFixture._fib; byte[] tableStream = _hWPFDocFixture._tableStream; Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestNotesTables.java URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestNotesTables.java?rev=1885302&r1=1885301&r2=1885302&view=diff ============================================================================== --- poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestNotesTables.java (original) +++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestNotesTables.java Sat Jan 9 15:49:35 2021 @@ -29,7 +29,7 @@ import org.junit.jupiter.api.Test; */ public class TestNotesTables { @Test - public void test() + void test() { HWPFDocument doc = HWPFTestDataSamples .openSampleFile( "endingnote.doc" ); Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestPAPBinTable.java URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestPAPBinTable.java?rev=1885302&r1=1885301&r2=1885302&view=diff ============================================================================== --- poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestPAPBinTable.java (original) +++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestPAPBinTable.java Sat Jan 9 15:49:35 2021 @@ -32,13 +32,13 @@ import org.junit.jupiter.api.Test; public final class TestPAPBinTable { @Test - public void testObIs() throws IOException { + void testObIs() throws IOException { // shall not fail with assertions on HWPFTestDataSamples.openSampleFile( "ob_is.doc" ).close(); } @Test - public void testReadWrite() throws IOException { + void testReadWrite() throws IOException { /** @todo verify the constructors */ HWPFDocFixture _hWPFDocFixture = new HWPFDocFixture( this, HWPFDocFixture.DEFAULT_TEST_FILE ); Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestPlexOfCps.java URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestPlexOfCps.java?rev=1885302&r1=1885301&r2=1885302&view=diff ============================================================================== --- poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestPlexOfCps.java (original) +++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestPlexOfCps.java Sat Jan 9 15:49:35 2021 @@ -30,7 +30,7 @@ public final class TestPlexOfCps { private HWPFDocFixture _hWPFDocFixture; @Test - public void testWriteRead() { + void testWriteRead() { _plexOfCps = new PlexOfCps(4); int last = 0; Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestRevisionMarkAuthorTable.java URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestRevisionMarkAuthorTable.java?rev=1885302&r1=1885301&r2=1885302&view=diff ============================================================================== --- poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestRevisionMarkAuthorTable.java (original) +++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestRevisionMarkAuthorTable.java Sat Jan 9 15:49:35 2021 @@ -33,7 +33,7 @@ public final class TestRevisionMarkAutho * Tests that an empty file doesn't have one */ @Test - public void testEmptyDocument() { + void testEmptyDocument() { HWPFDocument doc = HWPFTestDataSamples.openSampleFile("empty.doc"); RevisionMarkAuthorTable rmt = doc.getRevisionMarkAuthorTable(); @@ -45,7 +45,7 @@ public final class TestRevisionMarkAutho * only simple entries in the table */ @Test - public void testSimpleDocument() { + void testSimpleDocument() { HWPFDocument doc = HWPFTestDataSamples.openSampleFile("two_images.doc"); RevisionMarkAuthorTable rmt = doc.getRevisionMarkAuthorTable(); @@ -62,7 +62,7 @@ public final class TestRevisionMarkAutho * Several authors, one of whom has no name */ @Test - public void testMultipleAuthors() { + void testMultipleAuthors() { HWPFDocument doc = HWPFTestDataSamples.openSampleFile("MarkAuthorsTable.doc"); RevisionMarkAuthorTable rmt = doc.getRevisionMarkAuthorTable(); Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestSavedByTable.java URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestSavedByTable.java?rev=1885302&r1=1885301&r2=1885302&view=diff ============================================================================== --- poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestSavedByTable.java (original) +++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestSavedByTable.java Sat Jan 9 15:49:35 2021 @@ -57,7 +57,7 @@ public final class TestSavedByTable { * @throws Exception if an unexpected error occurs. */ @Test - public void testReadWrite() throws IOException { + void testReadWrite() throws IOException { // This document is widely available on the internet as "blair.doc". // I tried stripping the content and saving the document but my version // of Word (from Office XP) strips this table out. Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestSectionTable.java URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestSectionTable.java?rev=1885302&r1=1885301&r2=1885302&view=diff ============================================================================== --- poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestSectionTable.java (original) +++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestSectionTable.java Sat Jan 9 15:49:35 2021 @@ -32,7 +32,7 @@ public final class TestSectionTable { private HWPFDocFixture _hWPFDocFixture; @Test - public void testReadWrite() throws Exception { + void testReadWrite() throws Exception { FileInformationBlock fib = _hWPFDocFixture._fib; byte[] mainStream = _hWPFDocFixture._mainStream; byte[] tableStream = _hWPFDocFixture._tableStream; Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestStyleSheet.java URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestStyleSheet.java?rev=1885302&r1=1885301&r2=1885302&view=diff ============================================================================== --- poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestStyleSheet.java (original) +++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestStyleSheet.java Sat Jan 9 15:49:35 2021 @@ -33,7 +33,7 @@ public final class TestStyleSheet { private HWPFDocFixture _hWPFDocFixture; @Test - public void testReadWrite() throws IOException + void testReadWrite() throws IOException { HWPFFileSystem fileSys = new HWPFFileSystem(); @@ -50,7 +50,7 @@ public final class TestStyleSheet { } @Test - public void testReadWriteFromNonZeroOffset() throws IOException + void testReadWriteFromNonZeroOffset() throws IOException { HWPFFileSystem fileSys = new HWPFFileSystem(); ByteArrayOutputStream tableOut = fileSys.getStream("1Table"); Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestTextPieceTable.java URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestTextPieceTable.java?rev=1885302&r1=1885301&r2=1885302&view=diff ============================================================================== --- poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestTextPieceTable.java (original) +++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestTextPieceTable.java Sat Jan 9 15:49:35 2021 @@ -57,7 +57,7 @@ public final class TestTextPieceTable { } @Test - public void testReadWrite() throws Exception { + void testReadWrite() throws Exception { FileInformationBlock fib = _hWPFDocFixture._fib; byte[] mainStream = _hWPFDocFixture._mainStream; byte[] tableStream = _hWPFDocFixture._tableStream; @@ -88,7 +88,7 @@ public final class TestTextPieceTable { * Check that we do the positions correctly when working with pure-ascii */ @Test - public void testAsciiParts() throws Exception { + void testAsciiParts() throws Exception { HWPFDocument doc = HWPFTestDataSamples .openSampleFile("ThreeColHeadFoot.doc"); TextPieceTable tbl = doc.getTextTable(); @@ -122,7 +122,7 @@ public final class TestTextPieceTable { * unicode file */ @Test - public void testUnicodeParts() throws Exception { + void testUnicodeParts() throws Exception { HWPFDocument doc = HWPFTestDataSamples .openSampleFile("HeaderFooterUnicode.doc"); TextPieceTable tbl = doc.getTextTable(); @@ -189,7 +189,7 @@ public final class TestTextPieceTable { } @Test - public void test56549_CharIndexRange() { + void test56549_CharIndexRange() { HWPFDocument doc = HWPFTestDataSamples.openSampleFile("ThreeColHeadFoot.doc"); // there is one range from 2048 - 2387 Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/types/LFOLVLBaseAbstractTypeTest.java URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/types/LFOLVLBaseAbstractTypeTest.java?rev=1885302&r1=1885301&r2=1885302&view=diff ============================================================================== --- poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/types/LFOLVLBaseAbstractTypeTest.java (original) +++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/types/LFOLVLBaseAbstractTypeTest.java Sat Jan 9 15:49:35 2021 @@ -25,7 +25,7 @@ import org.junit.jupiter.api.Test; */ public class LFOLVLBaseAbstractTypeTest { @Test - public void testGetSize() { + void testGetSize() { assertEquals( 8, LFOLVLBaseAbstractType.getSize() ); } Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/types/LVLFAbstractTypeTest.java URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/types/LVLFAbstractTypeTest.java?rev=1885302&r1=1885301&r2=1885302&view=diff ============================================================================== --- poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/types/LVLFAbstractTypeTest.java (original) +++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/types/LVLFAbstractTypeTest.java Sat Jan 9 15:49:35 2021 @@ -25,7 +25,7 @@ import org.junit.jupiter.api.Test; */ public class LVLFAbstractTypeTest { @Test - public void testGetSize() { + void testGetSize() { assertEquals( 28, LVLFAbstractType.getSize() ); } Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/sprm/TableSprmUncompressorTest.java URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/sprm/TableSprmUncompressorTest.java?rev=1885302&r1=1885301&r2=1885302&view=diff ============================================================================== --- poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/sprm/TableSprmUncompressorTest.java (original) +++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/sprm/TableSprmUncompressorTest.java Sat Jan 9 15:49:35 2021 @@ -25,7 +25,7 @@ import org.junit.jupiter.api.Test; public class TableSprmUncompressorTest { @Test - public void testSprmTDefTable() { + void testSprmTDefTable() { final byte[] example = { (byte) 0x08, (byte) 0xD6, (byte) 0x2F, (byte) 0x00, (byte) 0x02, (byte) 0x94, (byte) 0xFF, (byte) 0x53, (byte) 0x03, (byte) 0x60, (byte) 0x13, Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/sprm/TestSprms.java URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/sprm/TestSprms.java?rev=1885302&r1=1885301&r2=1885302&view=diff ============================================================================== --- poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/sprm/TestSprms.java (original) +++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/sprm/TestSprms.java Sat Jan 9 15:49:35 2021 @@ -48,7 +48,7 @@ public class TestSprms { * (0x2416) */ @Test - public void testInnerTable() throws Exception { + void testInnerTable() throws Exception { InputStream resourceAsStream = POIDataSamples.getDocumentInstance() .openResourceAsStream( "innertable.doc" ); try (HWPFDocument hwpfDocument = new HWPFDocument( resourceAsStream )) { @@ -86,7 +86,7 @@ public class TestSprms { * Test correct processing of "sprmPJc" by uncompressor */ @Test - public void testSprmPJc() throws IOException { + void testSprmPJc() throws IOException { try (InputStream resourceAsStream = POIDataSamples.getDocumentInstance() .openResourceAsStream( "Bug49820.doc" ); HWPFDocument hwpfDocument = new HWPFDocument( resourceAsStream )) { Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestBorderCode.java URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestBorderCode.java?rev=1885302&r1=1885301&r2=1885302&view=diff ============================================================================== --- poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestBorderCode.java (original) +++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestBorderCode.java Sat Jan 9 15:49:35 2021 @@ -34,7 +34,7 @@ public final class TestBorderCode { private Range range; @Test - public void test() { + void test() { HWPFDocument doc = HWPFTestDataSamples.openSampleFile("Bug49919.doc"); range = doc.getRange(); Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestBug46610.java URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestBug46610.java?rev=1885302&r1=1885301&r2=1885302&view=diff ============================================================================== --- poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestBug46610.java (original) +++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestBug46610.java Sat Jan 9 15:49:35 2021 @@ -27,19 +27,19 @@ import org.junit.jupiter.api.Test; public final class TestBug46610 { @Test - public void testUtf() throws Exception { + void testUtf() throws Exception { String text = runExtract("Bug46610_1.doc"); assertNotNull(text); } @Test - public void testUtf2() throws Exception { + void testUtf2() throws Exception { String text = runExtract("Bug46610_2.doc"); assertNotNull(text); } @Test - public void testExtraction() throws Exception { + void testExtraction() throws Exception { String text = runExtract("Bug46610_3.doc"); assertContains(text, "\u0421\u0412\u041e\u042e"); } Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestBug47563.java URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestBug47563.java?rev=1885302&r1=1885301&r2=1885302&view=diff ============================================================================== --- poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestBug47563.java (original) +++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestBug47563.java Sat Jan 9 15:49:35 2021 @@ -53,7 +53,7 @@ public class TestBug47563 { @ParameterizedTest @MethodSource("data") - public void test(int rows, int columns) throws Exception { + void test(int rows, int columns) throws Exception { // POI apparently can't create a document from scratch, // so we need an existing empty dummy document try (HWPFDocument doc = HWPFTestDataSamples.openSampleFile("empty.doc")) { Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestBug49820.java URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestBug49820.java?rev=1885302&r1=1885301&r2=1885302&view=diff ============================================================================== --- poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestBug49820.java (original) +++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestBug49820.java Sat Jan 9 15:49:35 2021 @@ -29,7 +29,7 @@ import org.junit.jupiter.api.Test; public final class TestBug49820 { @Test - public void test() throws IOException { + void test() throws IOException { try (HWPFDocument doc = HWPFTestDataSamples.openSampleFile("Bug49820.doc")) { Range documentRange = doc.getRange(); Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestBug50075.java URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestBug50075.java?rev=1885302&r1=1885301&r2=1885302&view=diff ============================================================================== --- poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestBug50075.java (original) +++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestBug50075.java Sat Jan 9 15:49:35 2021 @@ -30,7 +30,7 @@ import org.junit.jupiter.api.Test; public class TestBug50075 { @Test - public void test() throws IOException { + void test() throws IOException { try (HWPFDocument doc = HWPFTestDataSamples.openSampleFile("Bug50075.doc")) { Range range = doc.getRange(); assertEquals(1, range.numParagraphs()); Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestBugs.java URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestBugs.java?rev=1885302&r1=1885301&r2=1885302&view=diff ============================================================================== --- poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestBugs.java (original) +++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestBugs.java Sat Jan 9 15:49:35 2021 @@ -117,7 +117,7 @@ public class TestBugs{ * Bug 33519 - HWPF fails to read a file */ @Test - public void test33519() throws IOException { + void test33519() throws IOException { assertNotNull(getText("Bug33519.doc")); } @@ -125,7 +125,7 @@ public class TestBugs{ * Bug 34898 - WordExtractor doesn't read the whole string from the file */ @Test - public void test34898() throws IOException { + void test34898() throws IOException { assertEqualsIgnoreNewline("\u30c7\u30a3\u30ec\u30af\u30c8\u30ea", getText("Bug34898.doc").trim()); } @@ -133,7 +133,7 @@ public class TestBugs{ * [RESOLVED INVALID] 41898 - Word 2003 pictures cannot be extracted */ @Test - public void test41898() throws IOException { + void test41898() throws IOException { HWPFDocument doc = HWPFTestDataSamples.openSampleFile("Bug41898.doc"); List<Picture> pics = doc.getPicturesTable().getAllPictures(); @@ -167,7 +167,7 @@ public class TestBugs{ */ @SuppressWarnings("deprecation") @Test - public void test44431() throws IOException { + void test44431() throws IOException { HWPFDocument doc1 = HWPFTestDataSamples.openSampleFile("Bug44431.doc"); WordExtractor extractor1 = new WordExtractor(doc1); @@ -192,7 +192,7 @@ public class TestBugs{ * Bug 44331 - HWPFDocument.write destroys fields */ @Test - public void test44431_2() throws IOException { + void test44431_2() throws IOException { assertEqualsIgnoreNewline("File name=FieldsTest.doc\n" + "\n" + "\n" + @@ -219,7 +219,7 @@ public class TestBugs{ * Bug 45473 - HWPF cannot read file after save */ @Test - public void test45473() throws IOException { + void test45473() throws IOException { // Fetch the current text HWPFDocument doc1 = HWPFTestDataSamples.openSampleFile("Bug45473.doc"); WordExtractor wordExtractor = new WordExtractor(doc1); @@ -252,7 +252,7 @@ public class TestBugs{ * Bug 46220 - images are not properly extracted */ @Test - public void test46220() throws IOException { + void test46220() throws IOException { HWPFDocument doc = HWPFTestDataSamples.openSampleFile("Bug46220.doc"); // reference checksums as in Bugzilla String[] md5 = { "851be142bce6d01848e730cb6903f39e", @@ -276,7 +276,7 @@ public class TestBugs{ * missing */ @Test - public void test46817() throws IOException { + void test46817() throws IOException { String text = getText("Bug46817.doc").trim(); assertContains(text, "Nazwa wykonawcy"); @@ -289,7 +289,7 @@ public class TestBugs{ * contains form elements */ @Test - public void test47286() throws IOException { + void test47286() throws IOException { // Fetch the current text HWPFDocument doc1 = HWPFTestDataSamples.openSampleFile("Bug47286.doc"); WordExtractor wordExtractor = new WordExtractor(doc1); @@ -328,7 +328,7 @@ public class TestBugs{ * CharacterRun.replaceText() */ @Test - public void test47287() { + void test47287() { HWPFDocument doc = HWPFTestDataSamples.openSampleFile("Bug47287.doc"); String[] values = { "1-1", "1-2", "1-3", "1-4", "1-5", "1-6", "1-7", "1-8", "1-9", "1-10", "1-11", "1-12", "1-13", "1-14", "1-15", }; @@ -403,7 +403,7 @@ public class TestBugs{ * some website as an embedded object */ @Test - public void test47731() throws Exception { + void test47731() throws Exception { String foundText = getText("Bug47731.doc"); assertContains(foundText, "Soak the rice in water for three to four hours"); @@ -413,7 +413,7 @@ public class TestBugs{ * Bug 4774 - text extracted by WordExtractor is broken */ @Test - public void test47742() throws Exception { + void test47742() throws Exception { // (1) extract text from MS Word document via POI String foundText = getText("Bug47742.doc"); @@ -433,7 +433,7 @@ public class TestBugs{ * Bug 47958 - Exception during Escher walk of pictures */ @Test - public void test47958() { + void test47958() { HWPFDocument doc = HWPFTestDataSamples.openSampleFile("Bug47958.doc"); doc.getPicturesTable().getAllPictures(); } @@ -443,7 +443,7 @@ public class TestBugs{ * formatting) */ @Test - public void test48065() { + void test48065() { HWPFDocument doc1 = HWPFTestDataSamples.openSampleFile("Bug48065.doc"); HWPFDocument doc2 = HWPFTestDataSamples.writeOutAndReadBack(doc1); @@ -458,7 +458,7 @@ public class TestBugs{ } @Test - public void test49933() throws IOException { + void test49933() throws IOException { try (HWPFOldDocument doc = HWPFTestDataSamples.openOldSampleFile("Bug49933.doc"); Word6Extractor extractor = new Word6Extractor(doc)) { assertContains(extractor.getText(), "best.wine.jump.ru"); @@ -469,7 +469,7 @@ public class TestBugs{ * Bug 50936 - Exception parsing MS Word 8.0 file */ @Test - public void test50936() throws Exception { + void test50936() throws Exception { String[] filenames = {"Bug50936_1.doc", "Bug50936_2.doc", "Bug50936_3.doc"}; for (String filename : filenames) { HWPFDocument hwpfDocument = HWPFTestDataSamples.openSampleFile(filename); @@ -485,7 +485,7 @@ public class TestBugs{ * release from download site ) */ @Test - public void test51604() { + void test51604() { HWPFDocument document = HWPFTestDataSamples .openSampleFile("Bug51604.doc"); @@ -514,7 +514,7 @@ public class TestBugs{ * release from download site ) */ @Test - public void test51604p2() { + void test51604p2() { HWPFDocument doc = HWPFTestDataSamples.openSampleFile("Bug51604.doc"); Range range = doc.getRange(); @@ -558,7 +558,7 @@ public class TestBugs{ * release from download site ) */ @Test - public void test51604p3() throws Exception { + void test51604p3() throws Exception { HWPFDocument doc = HWPFTestDataSamples.openSampleFile("Bug51604.doc"); FileInformationBlock fib = doc.getFileInformationBlock(); @@ -589,7 +589,7 @@ public class TestBugs{ * throws a NullPointerException */ @Test - public void test51671() throws Exception { + void test51671() throws Exception { InputStream is = POIDataSamples.getDocumentInstance() .openResourceAsStream("empty.doc"); try (POIFSFileSystem poifsFileSystem = new POIFSFileSystem(is)) { @@ -605,7 +605,7 @@ public class TestBugs{ * PapBinTable constructor is slow */ @Test - public void test51678And51524() throws IOException { + void test51678And51524() throws IOException { // YK: the test will run only if the poi.test.remote system property is // set. // TODO: refactor into something nicer! @@ -626,7 +626,7 @@ public class TestBugs{ * ArrayIndexOutOfBoundsException */ @Test - public void testBug51890() { + void testBug51890() { HWPFDocument doc = HWPFTestDataSamples.openSampleFile("Bug51890.doc"); for (Picture picture : doc.getPicturesTable().getAllPictures() ) { @@ -642,7 +642,7 @@ public class TestBugs{ * corrupt document */ @Test - public void testBug51834() { + void testBug51834() { /* * we don't have Java test for this file - it should be checked using * Microsoft BFF Validator. But check read-write-read anyway. -- sergey @@ -656,7 +656,7 @@ public class TestBugs{ * Bug 51944 - PAPFormattedDiskPage.getPAPX - IndexOutOfBounds */ @Test - public void testBug51944() throws Exception { + void testBug51944() throws Exception { HWPFOldDocument doc = HWPFTestDataSamples.openOldSampleFile("Bug51944.doc"); assertNotNull(WordToTextConverter.getText(doc)); } @@ -666,7 +666,7 @@ public class TestBugs{ * with no stack trace (broken after revision 1178063) */ @Test - public void testBug52032_1() throws Exception { + void testBug52032_1() throws Exception { assertNotNull(getText("Bug52032_1.doc")); } @@ -675,7 +675,7 @@ public class TestBugs{ * with no stack trace (broken after revision 1178063) */ @Test - public void testBug52032_2() throws Exception { + void testBug52032_2() throws Exception { assertNotNull(getText("Bug52032_2.doc")); } @@ -684,7 +684,7 @@ public class TestBugs{ * with no stack trace (broken after revision 1178063) */ @Test - public void testBug52032_3() throws Exception { + void testBug52032_3() throws Exception { assertNotNull(getText("Bug52032_3.doc")); } @@ -692,7 +692,7 @@ public class TestBugs{ * Bug 53380 - ArrayIndexOutOfBounds Exception parsing word 97 document */ @Test - public void testBug53380_1() throws Exception { + void testBug53380_1() throws Exception { assertNotNull(getText("Bug53380_1.doc")); } @@ -700,7 +700,7 @@ public class TestBugs{ * Bug 53380 - ArrayIndexOutOfBounds Exception parsing word 97 document */ @Test - public void testBug53380_2() throws Exception + void testBug53380_2() throws Exception { assertNotNull(getText("Bug53380_2.doc")); } @@ -709,7 +709,7 @@ public class TestBugs{ * Bug 53380 - ArrayIndexOutOfBounds Exception parsing word 97 document */ @Test - public void testBug53380_3() throws Exception { + void testBug53380_3() throws Exception { assertNotNull(getText("Bug53380_3.doc")); } @@ -717,7 +717,7 @@ public class TestBugs{ * Bug 53380 - ArrayIndexOutOfBounds Exception parsing word 97 document */ @Test - public void testBug53380_4() throws Exception { + void testBug53380_4() throws Exception { assertNotNull(getText("Bug53380_4.doc")); } @@ -728,7 +728,7 @@ public class TestBugs{ * Disabled pending a fix for the bug */ @Test - public void test56880() { + void test56880() { HWPFDocument doc = HWPFTestDataSamples.openSampleFile("56880.doc"); assertEqualsIgnoreNewline("Check Request", doc.getRange().text()); @@ -738,7 +738,7 @@ public class TestBugs{ * Bug 61268 - NegativeArraySizeException parsing word 97 document */ @Test - public void testBug61268() throws Exception { + void testBug61268() throws Exception { assertNotNull(getText("Bug61268.doc")); } @@ -749,7 +749,7 @@ public class TestBugs{ @Test @SuppressWarnings("SuspiciousNameCombination") - public void testHWPFSections() { + void testHWPFSections() { HWPFDocument document = HWPFTestDataSamples.openSampleFile("Bug53453Section.doc"); Range overallRange = document.getOverallRange(); int numParas = overallRange.numParagraphs(); @@ -825,20 +825,20 @@ public class TestBugs{ } @Test - public void testRegressionIn315beta2() { + void testRegressionIn315beta2() { HWPFDocument hwpfDocument = HWPFTestDataSamples.openSampleFile("cap.stanford.edu_profiles_viewbiosketch_facultyid=4009&name=m_maciver.doc"); assertNotNull(hwpfDocument); } @Test - public void test57603SevenRowTable() throws Exception { + void test57603SevenRowTable() throws Exception { try (HWPFDocument hwpfDocument = HWPFTestDataSamples.openSampleFile("57603-seven_columns.doc")) { assertThrows(ArrayIndexOutOfBoundsException.class, () -> HWPFTestDataSamples.writeOutAndReadBack(hwpfDocument)); } } @Test - public void test57843() throws IOException { + void test57843() throws IOException { File f = POIDataSamples.getDocumentInstance().getFile("57843.doc"); try (POIFSFileSystem fs = new POIFSFileSystem(f, true)) { HWPFOldDocument doc = new HWPFOldDocument(fs); @@ -848,13 +848,13 @@ public class TestBugs{ } @Test - public void testCommonCrawlRegression() throws IOException { + void testCommonCrawlRegression() throws IOException { HWPFDocument document = HWPFTestDataSamples.openSampleFile("ca.kwsymphony.www_education_School_Concert_Seat_Booking_Form_2011-12.doc"); document.close(); } @Test - public void test61911() throws IOException { + void test61911() throws IOException { HWPFDocument document = HWPFTestDataSamples.openSampleFile("61911.doc"); PicturesTable picturesTable = document.getPicturesTable(); @@ -866,7 +866,7 @@ public class TestBugs{ } @Test - public void test61490CellCountInTable() throws Exception { + void test61490CellCountInTable() throws Exception { try(HWPFDocument doc = HWPFTestDataSamples.openSampleFile("61490.doc")){ Range range = doc.getRange(); @@ -884,7 +884,7 @@ public class TestBugs{ } @Test - public void test59322() throws Exception { + void test59322() throws Exception { try(HWPFDocument doc = HWPFTestDataSamples.openSampleFile("59322.doc")) { Document document = XMLHelper.newDocumentBuilder().newDocument(); WordToHtmlConverter wordToHtmlConverter = new WordToHtmlConverter(document); @@ -894,7 +894,7 @@ public class TestBugs{ } @Test - public void test64132() throws IOException { + void test64132() throws IOException { try(HWPFDocument doc = HWPFTestDataSamples.openSampleFile("64132.doc")) { assertNotNull(doc); PicturesTable picturesTable = doc.getPicturesTable(); Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestHWPFOldDocument.java URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestHWPFOldDocument.java?rev=1885302&r1=1885301&r2=1885302&view=diff ============================================================================== --- poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestHWPFOldDocument.java (original) +++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestHWPFOldDocument.java Sat Jan 9 15:49:35 2021 @@ -42,13 +42,13 @@ public final class TestHWPFOldDocument e * Test a simple Word 6 document */ @Test - public void testWord6hwpf() { + void testWord6hwpf() { // Can't open as HWPFDocument assertThrows(OldFileFormatException.class, () -> openSampleFile("Word6.doc")); } @Test - public void testWord6hwpfOld() throws IOException { + void testWord6hwpfOld() throws IOException { // Open HWPFOldDocument doc = openOldSampleFile("Word6.doc"); @@ -66,13 +66,13 @@ public final class TestHWPFOldDocument e * Test a simple Word 2 document */ @Test - public void testWord2hwpf() { + void testWord2hwpf() { // Can't open as HWPFDocument assertThrows(IllegalArgumentException.class, () -> openSampleFile("word2.doc")); } @Test - public void testWord2hwpfOld() { + void testWord2hwpfOld() { // Open assertThrows(RuntimeException.class, () -> openOldSampleFile("word2.doc")); } @@ -81,13 +81,13 @@ public final class TestHWPFOldDocument e * Test a simple Word 95 document */ @Test - public void testWord95hwpf() { + void testWord95hwpf() { // Can't open as HWPFDocument assertThrows(OldFileFormatException.class, () -> openSampleFile("Word95.doc")); } @Test - public void testWord95hwpfOld() throws IOException { + void testWord95hwpfOld() throws IOException { // Open HWPFOldDocument doc = openOldSampleFile("Word95.doc"); @@ -126,7 +126,7 @@ public final class TestHWPFOldDocument e * stuff. */ @Test - public void testWord6Sections() throws IOException { + void testWord6Sections() throws IOException { HWPFOldDocument doc = openOldSampleFile("Word6_sections.doc"); assertEquals(3, doc.getRange().numSections()); @@ -150,7 +150,7 @@ public final class TestHWPFOldDocument e * properties set on it */ @Test - public void testWord6Sections2() throws IOException { + void testWord6Sections2() throws IOException { HWPFOldDocument doc = openOldSampleFile("Word6_sections2.doc"); assertEquals(1, doc.getRange().numSections()); @@ -163,7 +163,7 @@ public final class TestHWPFOldDocument e } @Test - public void testDefaultCodePageEncoding() throws IOException { + void testDefaultCodePageEncoding() throws IOException { HWPFOldDocument doc = openOldSampleFile("Bug60942.doc"); Word6Extractor ex = new Word6Extractor(doc); String txt = ex.getText(); @@ -177,7 +177,7 @@ public final class TestHWPFOldDocument e @Test - public void testCodePageBug50955() throws IOException { + void testCodePageBug50955() throws IOException { //windows 1251 HWPFOldDocument doc = openOldSampleFile("Bug50955.doc"); Word6Extractor ex = new Word6Extractor(doc); @@ -192,7 +192,7 @@ public final class TestHWPFOldDocument e } @Test - public void testCodePageBug60936() throws IOException { + void testCodePageBug60936() throws IOException { //windows 1250 -- this test file was generated with OpenOffice //see https://bz.apache.org/ooo/show_bug.cgi?id=12445 for the inspiration @@ -209,7 +209,7 @@ public final class TestHWPFOldDocument e } @Test - public void testOldFontTableEncoding() throws IOException { + void testOldFontTableEncoding() throws IOException { HWPFOldDocument doc = openOldSampleFile("Bug51944.doc"); OldFontTable oldFontTable = doc.getOldFontTable(); assertEquals(5, oldFontTable.getFontNames().length); @@ -221,7 +221,7 @@ public final class TestHWPFOldDocument e } @Test - public void testOldFontTableAltName() { + void testOldFontTableAltName() { HWPFOldDocument doc = openOldSampleFile("Bug60942b.doc"); OldFontTable oldFontTable = doc.getOldFontTable(); assertEquals(5, oldFontTable.getFontNames().length); @@ -233,7 +233,7 @@ public final class TestHWPFOldDocument e @Test - public void test51944() throws IOException { + void test51944() throws IOException { HWPFOldDocument doc = openOldSampleFile("Bug51944.doc"); Word6Extractor ex = new Word6Extractor(doc); StringBuilder sb = new StringBuilder(); Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestHWPFWrite.java URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestHWPFWrite.java?rev=1885302&r1=1885301&r2=1885302&view=diff ============================================================================== --- poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestHWPFWrite.java (original) +++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestHWPFWrite.java Sat Jan 9 15:49:35 2021 @@ -47,7 +47,7 @@ public final class TestHWPFWrite extends * Write to a stream */ @Test - public void testWriteStream() throws IOException { + void testWriteStream() throws IOException { HWPFDocument doc = HWPFTestDataSamples.openSampleFile("SampleDoc.doc"); Range r = doc.getRange(); @@ -68,7 +68,7 @@ public final class TestHWPFWrite extends * Write to a new file */ @Test - public void testWriteNewFile() throws IOException { + void testWriteNewFile() throws IOException { HWPFDocument doc = HWPFTestDataSamples.openSampleFile("SampleDoc.doc"); Range r = doc.getRange(); @@ -95,7 +95,7 @@ public final class TestHWPFWrite extends * changing our test files! */ @Test - public void testInPlaceWrite() throws Exception { + void testInPlaceWrite() throws Exception { // Setup as a copy of a known-good file final File file = TempFile.createTempFile("TestDocument", ".doc"); try (InputStream inputStream = SAMPLES.openResourceAsStream("SampleDoc.doc"); @@ -126,7 +126,7 @@ public final class TestHWPFWrite extends } @Test - public void testInvalidInPlaceWriteInputStream() throws IOException { + void testInvalidInPlaceWriteInputStream() throws IOException { // Can't work for InputStream opened files try (InputStream is = SAMPLES.openResourceAsStream("SampleDoc.doc"); @@ -136,7 +136,7 @@ public final class TestHWPFWrite extends } @Test - public void testInvalidInPlaceWritePOIFS() throws Exception { + void testInvalidInPlaceWritePOIFS() throws Exception { // Can't work for Read-Only files try (POIFSFileSystem fs = new POIFSFileSystem(SAMPLES.getFile("SampleDoc.doc"), true); HWPFDocument doc = new HWPFDocument(fs.getRoot())) { Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestHeaderStories.java URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestHeaderStories.java?rev=1885302&r1=1885301&r2=1885302&view=diff ============================================================================== --- poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestHeaderStories.java (original) +++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestHeaderStories.java Sat Jan 9 15:49:35 2021 @@ -54,7 +54,7 @@ public final class TestHeaderStories { } @Test - public void testNone() { + void testNone() { HeaderStories hs = new HeaderStories(none); assertNull(hs.getPlcfHdd()); @@ -62,7 +62,7 @@ public final class TestHeaderStories { } @Test - public void testHeader() { + void testHeader() { HeaderStories hs = new HeaderStories(header); assertEquals(60, hs.getRange().text().length()); @@ -107,7 +107,7 @@ public final class TestHeaderStories { } @Test - public void testFooter() { + void testFooter() { HeaderStories hs = new HeaderStories(footer); assertEquals("", hs.getFirstHeader()); @@ -120,7 +120,7 @@ public final class TestHeaderStories { } @Test - public void testHeaderFooter() { + void testHeaderFooter() { HeaderStories hs = new HeaderStories(headerFooter); assertEquals("", hs.getFirstHeader()); @@ -133,7 +133,7 @@ public final class TestHeaderStories { } @Test - public void testOddEven() { + void testOddEven() { HeaderStories hs = new HeaderStories(oddEven); assertEquals("", hs.getFirstHeader()); @@ -156,7 +156,7 @@ public final class TestHeaderStories { } @Test - public void testFirst() { + void testFirst() { HeaderStories hs = new HeaderStories(diffFirst); assertEquals("I am the header on the first page, and I\u2019m nice and simple\r\r", hs @@ -174,7 +174,7 @@ public final class TestHeaderStories { } @Test - public void testUnicode() { + void testUnicode() { HeaderStories hs = new HeaderStories(unicode); assertEquals("", hs.getFirstHeader()); @@ -188,7 +188,7 @@ public final class TestHeaderStories { } @Test - public void testWithFields() { + void testWithFields() { HeaderStories hs = new HeaderStories(withFields); assertFalse(hs.areFieldsStripped()); Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestLists.java URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestLists.java?rev=1885302&r1=1885301&r2=1885302&view=diff ============================================================================== --- poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestLists.java (original) +++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestLists.java Sat Jan 9 15:49:35 2021 @@ -34,7 +34,7 @@ import org.junit.jupiter.api.Test; */ public final class TestLists { @Test - public void testBasics() throws IOException { + void testBasics() throws IOException { try (HWPFDocument doc = openSampleFile("Lists.doc")) { Range r = doc.getRange(); @@ -52,7 +52,7 @@ public final class TestLists { } @Test - public void testUnorderedLists() throws IOException { + void testUnorderedLists() throws IOException { try (HWPFDocument doc = openSampleFile("Lists.doc")) { Range r = doc.getRange(); assertEquals(40, r.numParagraphs()); @@ -96,7 +96,7 @@ public final class TestLists { } @Test - public void testOrderedLists() throws IOException { + void testOrderedLists() throws IOException { try (HWPFDocument doc = openSampleFile("Lists.doc")) { Range r = doc.getRange(); assertEquals(40, r.numParagraphs()); @@ -122,7 +122,7 @@ public final class TestLists { } @Test - public void testMultiLevelLists() throws IOException { + void testMultiLevelLists() throws IOException { try (HWPFDocument doc = openSampleFile("Lists.doc")) { Range r = doc.getRange(); assertEquals(40, r.numParagraphs()); @@ -181,7 +181,7 @@ public final class TestLists { } @Test - public void testIndentedText() throws IOException { + void testIndentedText() throws IOException { try (HWPFDocument doc = openSampleFile("Lists.doc")) { Range r = doc.getRange(); @@ -211,7 +211,7 @@ public final class TestLists { } @Test - public void testWriteRead() throws IOException { + void testWriteRead() throws IOException { try (HWPFDocument doc = openSampleFile("Lists.doc"); HWPFDocument doc2 = HWPFTestDataSamples.writeOutAndReadBack(doc)) { @@ -228,7 +228,7 @@ public final class TestLists { } @Test - public void testSpecificNumberedOrderedListFeatures() throws IOException { + void testSpecificNumberedOrderedListFeatures() throws IOException { try (HWPFDocument doc = openSampleFile("Lists.doc")) { Range r = doc.getRange(); Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestOfficeDrawings.java URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestOfficeDrawings.java?rev=1885302&r1=1885301&r2=1885302&view=diff ============================================================================== --- poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestOfficeDrawings.java (original) +++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestOfficeDrawings.java Sat Jan 9 15:49:35 2021 @@ -34,7 +34,7 @@ public class TestOfficeDrawings { * Tests watermark text extraction */ @Test - public void testWatermark() throws Exception { + void testWatermark() throws Exception { try (HWPFDocument hwpfDocument = openSampleFile("watermark.doc")) { OfficeDrawing drawing = hwpfDocument.getOfficeDrawingsHeaders().getOfficeDrawings().iterator().next(); EscherContainerRecord escherContainerRecord = drawing.getOfficeArtSpContainer(); Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestPictures.java URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestPictures.java?rev=1885302&r1=1885301&r2=1885302&view=diff ============================================================================== --- poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestPictures.java (original) +++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestPictures.java Sat Jan 9 15:49:35 2021 @@ -44,7 +44,7 @@ public final class TestPictures { * two jpegs */ @Test - public void testTwoImages() { + void testTwoImages() { HWPFDocument doc = HWPFTestDataSamples.openSampleFile("two_images.doc"); List<Picture> pics = doc.getPicturesTable().getAllPictures(); @@ -66,7 +66,7 @@ public final class TestPictures { * pngs and jpegs */ @Test - public void testDifferentImages() { + void testDifferentImages() { HWPFDocument doc = HWPFTestDataSamples.openSampleFile("testPictures.doc"); List<Picture> pics = doc.getPicturesTable().getAllPictures(); @@ -95,7 +95,7 @@ public final class TestPictures { * emf image, nice and simple */ @Test - public void testEmfImage() { + void testEmfImage() { HWPFDocument doc = HWPFTestDataSamples.openSampleFile("vector_image.doc"); List<Picture> pics = doc.getPicturesTable().getAllPictures(); @@ -117,7 +117,7 @@ public final class TestPictures { } @Test - public void testPicturesWithTable() { + void testPicturesWithTable() { HWPFDocument doc = HWPFTestDataSamples.openSampleFile("Bug44603.doc"); List<Picture> pics = doc.getPicturesTable().getAllPictures(); @@ -125,7 +125,7 @@ public final class TestPictures { } @Test - public void testPicturesInHeader() { + void testPicturesInHeader() { HWPFDocument doc = HWPFTestDataSamples.openSampleFile("header_image.doc"); List<Picture> pics = doc.getPicturesTable().getAllPictures(); @@ -133,21 +133,21 @@ public final class TestPictures { } @Test - public void testFastSaved() { + void testFastSaved() { HWPFDocument doc = HWPFTestDataSamples.openSampleFile("rasp.doc"); doc.getPicturesTable().getAllPictures(); // just check that we do not throw Exception } @Test - public void testFastSaved2() { + void testFastSaved2() { HWPFDocument doc = HWPFTestDataSamples.openSampleFile("o_kurs.doc"); doc.getPicturesTable().getAllPictures(); // just check that we do not throw Exception } @Test - public void testFastSaved3() { + void testFastSaved3() { HWPFDocument doc = HWPFTestDataSamples.openSampleFile("ob_is.doc"); doc.getPicturesTable().getAllPictures(); // just check that we do not throw Exception @@ -161,7 +161,7 @@ public final class TestPictures { * Check that we can properly read one of these */ @Test - public void testEmbededDocumentIcon() { + void testEmbededDocumentIcon() { // This file has two embeded excel files, an embeded powerpoint // file and an embeded word file, in that order HWPFDocument doc = HWPFTestDataSamples.openSampleFile("word_with_embeded.doc"); @@ -247,7 +247,7 @@ public final class TestPictures { } @Test - public void testEquation() + void testEquation() { HWPFDocument doc = HWPFTestDataSamples.openSampleFile( "equation.doc" ); PicturesTable pictures = doc.getPicturesTable(); @@ -273,7 +273,7 @@ public final class TestPictures { * reference the same \u0001 */ @Test - public void testFloatingPictures() { + void testFloatingPictures() { HWPFDocument doc = HWPFTestDataSamples.openSampleFile("FloatingPictures.doc"); PicturesTable pictures = doc.getPicturesTable(); @@ -308,7 +308,7 @@ public final class TestPictures { @SuppressWarnings( "deprecation" ) @Test - public void testCroppedPictures() { + void testCroppedPictures() { HWPFDocument doc = HWPFTestDataSamples.openSampleFile("testCroppedPictures.doc"); List<Picture> pics = doc.getPicturesTable().getAllPictures(); @@ -339,7 +339,7 @@ public final class TestPictures { } @Test - public void testPictureDetectionWithPNG() { + void testPictureDetectionWithPNG() { HWPFDocument document = HWPFTestDataSamples.openSampleFile("PngPicture.doc"); PicturesTable pictureTable = document.getPicturesTable(); @@ -351,7 +351,7 @@ public final class TestPictures { } @Test - public void testPictureWithAlternativeText() { + void testPictureWithAlternativeText() { HWPFDocument document = HWPFTestDataSamples.openSampleFile("Picture_Alternative_Text.doc"); PicturesTable pictureTable = document.getPicturesTable(); Picture picture = pictureTable.getAllPictures().get(0); @@ -361,7 +361,7 @@ public final class TestPictures { @Disabled("This bug is not fixed yet") @Test - public void test58804_1() throws Exception { + void test58804_1() throws Exception { HWPFDocument docA = HWPFTestDataSamples.openSampleFile("58804_1.doc"); expectImages(docA, 1); @@ -377,7 +377,7 @@ public final class TestPictures { @Disabled("This bug is not fixed yet") @Test - public void test58804() throws Exception { + void test58804() throws Exception { HWPFDocument docA = HWPFTestDataSamples.openSampleFile("58804.doc"); expectImages(docA, 7); Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestProblems.java URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestProblems.java?rev=1885302&r1=1885301&r2=1885302&view=diff ============================================================================== --- poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestProblems.java (original) +++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestProblems.java Sat Jan 9 15:49:35 2021 @@ -40,7 +40,7 @@ public final class TestProblems extends * ListEntry passed no ListTable */ @Test - public void testListEntryNoListTable() throws IOException { + void testListEntryNoListTable() throws IOException { HWPFDocument doc = HWPFTestDataSamples.openSampleFile("ListEntryNoListTable.doc"); Range r = doc.getRange(); @@ -58,7 +58,7 @@ public final class TestProblems extends * AIOOB for TableSprmUncompressor.unCompressTAPOperation */ @Test - public void testSprmAIOOB() throws IOException { + void testSprmAIOOB() throws IOException { HWPFDocument doc = HWPFTestDataSamples.openSampleFile("AIOOB-Tap.doc"); StyleSheet styleSheet = doc.getStyleSheet(); @@ -80,7 +80,7 @@ public final class TestProblems extends * #44292 */ @Test - public void testTableCellLastParagraph() throws IOException { + void testTableCellLastParagraph() throws IOException { HWPFDocument doc = HWPFTestDataSamples.openSampleFile("Bug44292.doc"); Range r = doc.getRange(); assertEquals(6, r.numParagraphs()); @@ -150,7 +150,7 @@ public final class TestProblems extends } @Test - public void testRangeDelete() throws IOException { + void testRangeDelete() throws IOException { HWPFDocument doc = HWPFTestDataSamples.openSampleFile("Bug28627.doc"); Range range = doc.getRange(); @@ -190,13 +190,13 @@ public final class TestProblems extends * With an encrypted file, we should give a suitable exception, and not OOM */ @Test - public void testEncryptedFile() { + void testEncryptedFile() { assertThrows(EncryptedDocumentException.class, () -> HWPFTestDataSamples.openSampleFile("PasswordProtected.doc")); } @Test - public void testWriteProperties() throws IOException { + void testWriteProperties() throws IOException { HWPFDocument doc = HWPFTestDataSamples.openSampleFile("SampleDoc.doc"); assertEquals("Nick Burch", doc.getSummaryInformation().getAuthor()); @@ -212,7 +212,7 @@ public final class TestProblems extends * Range. Bug #45269 */ @Test - public void testReadParagraphsAfterReplaceText() throws IOException { + void testReadParagraphsAfterReplaceText() throws IOException { HWPFDocument doc = HWPFTestDataSamples.openSampleFile("Bug45269.doc"); Range range = doc.getRange(); @@ -251,7 +251,7 @@ public final class TestProblems extends */ @SuppressWarnings("deprecation") @Test - public void testProblemHeaderStories49936() throws IOException { + void testProblemHeaderStories49936() throws IOException { HWPFDocument doc = HWPFTestDataSamples.openSampleFile("HeaderFooterProblematic.doc"); HeaderStories hs = new HeaderStories(doc); @@ -274,7 +274,7 @@ public final class TestProblems extends * Bug #45877 - problematic PAPX with no parent set */ @Test - public void testParagraphPAPXNoParent45877() throws IOException { + void testParagraphPAPXNoParent45877() throws IOException { HWPFDocument doc = HWPFTestDataSamples.openSampleFile("Bug45877.doc"); assertEquals(17, doc.getRange().numParagraphs()); @@ -290,7 +290,7 @@ public final class TestProblems extends * Bug #48245 - don't include the text from the next cell in the current one */ @Test - public void testTableIterator() throws IOException { + void testTableIterator() throws IOException { HWPFDocument doc = HWPFTestDataSamples.openSampleFile("simple-table2.doc"); Range r = doc.getRange(); Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestRange.java URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestRange.java?rev=1885302&r1=1885301&r2=1885302&view=diff ============================================================================== --- poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestRange.java (original) +++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestRange.java Sat Jan 9 15:49:35 2021 @@ -37,7 +37,7 @@ public final class TestRange { private static final POIDataSamples SAMPLES = POIDataSamples.getDocumentInstance(); @Test - public void testFieldStripping() { + void testFieldStripping() { String exp = "This is some text."; String single = "This is some \u0013Blah!\u0015text."; @@ -63,7 +63,7 @@ public final class TestRange { } @Test - public void testBug46817() throws IOException { + void testBug46817() throws IOException { InputStream is = SAMPLES.openResourceAsStream( "Bug46817.doc" ); HWPFDocument hwpfDocument = new HWPFDocument( is ); is.close(); Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestRangeDelete.java URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestRangeDelete.java?rev=1885302&r1=1885301&r2=1885302&view=diff ============================================================================== --- poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestRangeDelete.java (original) +++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestRangeDelete.java Sat Jan 9 15:49:35 2021 @@ -53,7 +53,7 @@ public final class TestRangeDelete { * Test just opening the files */ @Test - public void testOpen() throws IOException { + void testOpen() throws IOException { openSampleFile(illustrativeDocFile).close(); } @@ -61,7 +61,7 @@ public final class TestRangeDelete { * Test (more "confirm" than test) that we have the general structure that we expect to have. */ @Test - public void testDocStructure() throws IOException { + void testDocStructure() throws IOException { try (HWPFDocument daDoc = openSampleFile(illustrativeDocFile)) { Range range; @@ -128,7 +128,7 @@ public final class TestRangeDelete { * Test that we can delete text (one instance) from our Range with Unicode text. */ @Test - public void testRangeDeleteOne() throws IOException { + void testRangeDeleteOne() throws IOException { try (HWPFDocument daDoc = openSampleFile(illustrativeDocFile)) { Range range = daDoc.getOverallRange(); @@ -178,7 +178,7 @@ public final class TestRangeDelete { * Test that we can delete text (all instances of) from our Range with Unicode text. */ @Test - public void testRangeDeleteAll() throws IOException { + void testRangeDeleteAll() throws IOException { try (HWPFDocument daDoc = openSampleFile(illustrativeDocFile)) { Range range = daDoc.getRange(); Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestRangeInsertion.java URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestRangeInsertion.java?rev=1885302&r1=1885301&r2=1885302&view=diff ============================================================================== --- poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestRangeInsertion.java (original) +++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestRangeInsertion.java Sat Jan 9 15:49:35 2021 @@ -45,7 +45,7 @@ public final class TestRangeInsertion { * Test just opening the files */ @Test - public void testOpen() throws IOException { + void testOpen() throws IOException { openSampleFile(illustrativeDocFile).close(); } @@ -53,7 +53,7 @@ public final class TestRangeInsertion { * Test (more "confirm" than test) that we have the general structure that we expect to have. */ @Test - public void testDocStructure() throws IOException { + void testDocStructure() throws IOException { try (HWPFDocument daDoc = openSampleFile(illustrativeDocFile)) { Range range = daDoc.getRange(); @@ -81,7 +81,7 @@ public final class TestRangeInsertion { * Test that we can insert text in our CharacterRun with Unicode text. */ @Test - public void testRangeInsertion() throws IOException { + void testRangeInsertion() throws IOException { try (HWPFDocument daDoc = openSampleFile(illustrativeDocFile)) { // if (false) { // TODO - delete or resurrect this code Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestRangeProperties.java URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestRangeProperties.java?rev=1885302&r1=1885301&r2=1885302&view=diff ============================================================================== --- poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestRangeProperties.java (original) +++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestRangeProperties.java Sat Jan 9 15:49:35 2021 @@ -75,7 +75,7 @@ public final class TestRangeProperties { } @Test - public void testAsciiTextParagraphs() { + void testAsciiTextParagraphs() { Range r = a.getRange(); assertEquals( a_page_1 + @@ -131,7 +131,7 @@ public final class TestRangeProperties { } @Test - public void testAsciiStyling() { + void testAsciiStyling() { Range r = a.getRange(); Paragraph p1 = r.getParagraph(0); @@ -174,7 +174,7 @@ public final class TestRangeProperties { * a unicode document */ @Test - public void testUnicodeParagraphDefinitions() { + void testUnicodeParagraphDefinitions() { Range r = u.getRange(); String[] p1_parts = u_page_1.split("\r"); @@ -267,7 +267,7 @@ public final class TestRangeProperties { * Tests the paragraph text of a unicode document */ @Test - public void testUnicodeTextParagraphs() { + void testUnicodeTextParagraphs() { Range r = u.getRange(); assertEquals( u_page_1 + @@ -304,7 +304,7 @@ public final class TestRangeProperties { } @Test - public void testUnicodeStyling() { + void testUnicodeStyling() { Range r = u.getRange(); String[] p1_parts = u_page_1.split("\r"); Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestRangeReplacement.java URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestRangeReplacement.java?rev=1885302&r1=1885301&r2=1885302&view=diff ============================================================================== --- poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestRangeReplacement.java (original) +++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestRangeReplacement.java Sat Jan 9 15:49:35 2021 @@ -47,7 +47,7 @@ public final class TestRangeReplacement /** * Test just opening the files */ - public void testOpen() { + void testOpen() { openSampleFile(illustrativeDocFile); } @@ -55,7 +55,7 @@ public final class TestRangeReplacement * Test (more "confirm" than test) that we have the general structure that we expect to have. */ @Test - public void testDocStructure() throws IOException { + void testDocStructure() throws IOException { try (HWPFDocument daDoc = openSampleFile(illustrativeDocFile)) { Range range = daDoc.getRange(); @@ -84,7 +84,7 @@ public final class TestRangeReplacement * Test that we can replace text in our Range with Unicode text. */ @Test - public void testRangeReplacementOne() throws IOException { + void testRangeReplacementOne() throws IOException { try (HWPFDocument daDoc = openSampleFile(illustrativeDocFile)) { // Has one section @@ -124,7 +124,7 @@ public final class TestRangeReplacement * Test that we can replace text in our Range with Unicode text. */ @Test - public void testRangeReplacementAll() throws IOException { + void testRangeReplacementAll() throws IOException { try (HWPFDocument daDoc = openSampleFile(illustrativeDocFile)) { Range range = daDoc.getRange(); Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestRangeSymbols.java URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestRangeSymbols.java?rev=1885302&r1=1885301&r2=1885302&view=diff ============================================================================== --- poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestRangeSymbols.java (original) +++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestRangeSymbols.java Sat Jan 9 15:49:35 2021 @@ -31,7 +31,7 @@ import static org.junit.jupiter.api.Asse */ public final class TestRangeSymbols { @Test - public void test() throws IOException { + void test() throws IOException { HWPFDocument doc = HWPFTestDataSamples.openSampleFile("Bug49908.doc"); Range range = doc.getRange(); @@ -50,7 +50,7 @@ public final class TestRangeSymbols { } @Test - public void test61586() throws IOException { + void test61586() throws IOException { HWPFDocument document = HWPFTestDataSamples.openSampleFile("61586.doc"); assertEquals("\r" + "\r" + Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestTableRow.java URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestTableRow.java?rev=1885302&r1=1885301&r2=1885302&view=diff ============================================================================== --- poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestTableRow.java (original) +++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestTableRow.java Sat Jan 9 15:49:35 2021 @@ -29,7 +29,7 @@ public class TestTableRow { private static final POIDataSamples SAMPLES = POIDataSamples.getDocumentInstance(); @Test - public void testInnerTableCellsDetection() throws IOException { + void testInnerTableCellsDetection() throws IOException { InputStream is = SAMPLES.openResourceAsStream( "innertable.doc" ); HWPFDocument hwpfDocument = new HWPFDocument( is ); is.close(); @@ -47,7 +47,7 @@ public class TestTableRow { } @Test - public void testOuterTableCellsDetection() throws IOException { + void testOuterTableCellsDetection() throws IOException { InputStream is = SAMPLES.openResourceAsStream( "innertable.doc" ); HWPFDocument hwpfDocument = new HWPFDocument( is ); is.close(); Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/util/TestLittleEndianCP950Reader.java URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/util/TestLittleEndianCP950Reader.java?rev=1885302&r1=1885301&r2=1885302&view=diff ============================================================================== --- poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/util/TestLittleEndianCP950Reader.java (original) +++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/util/TestLittleEndianCP950Reader.java Sat Jan 9 15:49:35 2021 @@ -27,7 +27,7 @@ import org.junit.jupiter.api.Test; public class TestLittleEndianCP950Reader { @Test - public void testPersonalUseMappings() throws Exception { + void testPersonalUseMappings() throws Exception { //ftp://ftp.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WindowsBestFit/bestfit950.txt byte[] data = new byte[2]; data[1] = (byte) 0xfe; --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@poi.apache.org For additional commands, e-mail: commits-h...@poi.apache.org