Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFSDT.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFSDT.java?rev=1885283&r1=1885282&r2=1885283&view=diff ============================================================================== --- poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFSDT.java (original) +++ poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFSDT.java Sat Jan 9 00:46:52 2021 @@ -34,7 +34,7 @@ public final class TestXWPFSDT { * Test text extraction from nested SDTs */ @Test - public void testNestedSDTs() throws Exception { + void testNestedSDTs() throws Exception { try (XWPFDocument doc = XWPFTestDataSamples.openSampleDocument("Bug64561.docx")) { XWPFAbstractSDT sdt = extractAllSDTs(doc).get(0); assertEquals("Subject", sdt.getContent().getText(), "extracted text"); @@ -45,7 +45,7 @@ public final class TestXWPFSDT { * Test simple tag and title extraction from SDT */ @Test - public void testTagTitle() throws Exception { + void testTagTitle() throws Exception { try (XWPFDocument doc =XWPFTestDataSamples.openSampleDocument("Bug54849.docx")) { String tag = null; String title = null; @@ -66,7 +66,7 @@ public final class TestXWPFSDT { } @Test - public void testGetSDTs() throws Exception { + void testGetSDTs() throws Exception { String[] contents = new String[]{ "header_rich_text", "Rich_text", @@ -99,7 +99,7 @@ public final class TestXWPFSDT { * POI-54771 and TIKA-1317 */ @Test - public void testSDTAsCell() throws Exception { + void testSDTAsCell() throws Exception { //Bug54771a.docx and Bug54771b.docx test slightly //different recursion patterns. Keep both! try (XWPFDocument doc = XWPFTestDataSamples.openSampleDocument("Bug54771a.docx")) { @@ -128,7 +128,7 @@ public final class TestXWPFSDT { * POI-55142 and Tika 1130 */ @Test - public void testNewLinesBetweenRuns() throws Exception { + void testNewLinesBetweenRuns() throws Exception { try (XWPFDocument doc =XWPFTestDataSamples.openSampleDocument("Bug55142.docx")) { List<XWPFAbstractSDT> sdts = extractAllSDTs(doc); List<String> targs = new ArrayList<>(); @@ -152,7 +152,7 @@ public final class TestXWPFSDT { } @Test - public void test60341() throws IOException { + void test60341() throws IOException { //handle sdtbody without an sdtpr try (XWPFDocument doc =XWPFTestDataSamples.openSampleDocument("Bug60341.docx")) { List<XWPFAbstractSDT> sdts = extractAllSDTs(doc); @@ -163,7 +163,7 @@ public final class TestXWPFSDT { } @Test - public void test62859() throws IOException { + void test62859() throws IOException { //this doesn't test the exact code path for this issue, but //it does test for a related issue, and the fix fixes both. //We should try to add the actual triggering document
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFSmartTag.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFSmartTag.java?rev=1885283&r1=1885282&r2=1885283&view=diff ============================================================================== --- poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFSmartTag.java (original) +++ poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFSmartTag.java Sat Jan 9 00:46:52 2021 @@ -28,7 +28,7 @@ import org.junit.jupiter.api.Test; */ public final class TestXWPFSmartTag { @Test - public void testSmartTags() throws IOException { + void testSmartTags() throws IOException { try (XWPFDocument doc = XWPFTestDataSamples.openSampleDocument("smarttag-snippet.docx")) { XWPFParagraph p = doc.getParagraphArray(0); assertContains(p.getText(), "Carnegie Mellon University School of Computer Science"); Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFStyles.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFStyles.java?rev=1885283&r1=1885282&r2=1885283&view=diff ============================================================================== --- poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFStyles.java (original) +++ poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFStyles.java Sat Jan 9 00:46:52 2021 @@ -39,7 +39,7 @@ import org.openxmlformats.schemas.wordpr public final class TestXWPFStyles { @Test - public void testGetUsedStyles() throws IOException { + void testGetUsedStyles() throws IOException { try (XWPFDocument sampleDoc = XWPFTestDataSamples.openSampleDocument("Styles.docx")) { List<XWPFStyle> testUsedStyleList = new ArrayList<>(); XWPFStyles styles = sampleDoc.getStyles(); @@ -56,7 +56,7 @@ public final class TestXWPFStyles { } @Test - public void testAddStylesToDocument() throws IOException { + void testAddStylesToDocument() throws IOException { XWPFDocument docOut = new XWPFDocument(); XWPFStyles styles = docOut.createStyles(); @@ -80,7 +80,7 @@ public final class TestXWPFStyles { * both regular and glossary styles without error */ @Test - public void test52449() throws Exception { + void test52449() throws Exception { try (XWPFDocument doc = XWPFTestDataSamples.openSampleDocument("52449.docx")) { XWPFStyles styles = doc.getStyles(); assertNotNull(styles); @@ -98,7 +98,7 @@ public final class TestXWPFStyles { */ @SuppressWarnings("resource") @Test - public void testLanguages() { + void testLanguages() { XWPFDocument docOut = new XWPFDocument(); XWPFStyles styles = docOut.createStyles(); styles.setEastAsia("Chinese"); @@ -110,7 +110,7 @@ public final class TestXWPFStyles { } @Test - public void testType() { + void testType() { CTStyle ctStyle = CTStyle.Factory.newInstance(); XWPFStyle style = new XWPFStyle(ctStyle); @@ -119,7 +119,7 @@ public final class TestXWPFStyles { } @Test - public void testLatentStyles() { + void testLatentStyles() { CTLatentStyles latentStyles = CTLatentStyles.Factory.newInstance(); CTLsdException ex = latentStyles.addNewLsdException(); ex.setName("ex1"); @@ -129,7 +129,7 @@ public final class TestXWPFStyles { } @Test - public void testSetStyles_Bug57254() throws IOException { + void testSetStyles_Bug57254() throws IOException { XWPFDocument docOut = new XWPFDocument(); XWPFStyles styles = docOut.createStyles(); @@ -149,7 +149,7 @@ public final class TestXWPFStyles { } @Test - public void testEasyAccessToStyles() throws IOException { + void testEasyAccessToStyles() throws IOException { try (XWPFDocument doc = XWPFTestDataSamples.openSampleDocument("SampleDoc.docx")) { XWPFStyles styles = doc.getStyles(); assertNotNull(styles); @@ -209,7 +209,7 @@ public final class TestXWPFStyles { // Bug 60329: style with missing StyleID throws NPE @Test - public void testMissingStyleId() throws IOException { + void testMissingStyleId() throws IOException { try (XWPFDocument doc = XWPFTestDataSamples.openSampleDocument("60329.docx")) { XWPFStyles styles = doc.getStyles(); // Styles exist in the test document in this order, EmptyCellLayoutStyle @@ -226,7 +226,7 @@ public final class TestXWPFStyles { } @Test - public void testGetStyleByName() throws IOException { + void testGetStyleByName() throws IOException { try (XWPFDocument doc = XWPFTestDataSamples.openSampleDocument("SampleDoc.docx")) { XWPFStyles styles = doc.getStyles(); assertNotNull(styles); Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFTable.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFTable.java?rev=1885283&r1=1885282&r2=1885283&view=diff ============================================================================== --- poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFTable.java (original) +++ poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFTable.java Sat Jan 9 00:46:52 2021 @@ -46,7 +46,7 @@ import org.openxmlformats.schemas.wordpr public class TestXWPFTable { @Test - public void testConstructor() throws IOException { + void testConstructor() throws IOException { try (XWPFDocument doc = new XWPFDocument()) { CTTbl ctTable = CTTbl.Factory.newInstance(); XWPFTable xtab = new XWPFTable(ctTable, doc); @@ -65,7 +65,7 @@ public class TestXWPFTable { } @Test - public void testTblGrid() throws IOException { + void testTblGrid() throws IOException { try (XWPFDocument doc = new XWPFDocument()) { CTTbl ctTable = CTTbl.Factory.newInstance(); CTTblGrid cttblgrid = ctTable.addNewTblGrid(); @@ -80,7 +80,7 @@ public class TestXWPFTable { } @Test - public void testGetText() throws IOException { + void testGetText() throws IOException { try (XWPFDocument doc = new XWPFDocument()) { CTTbl table = CTTbl.Factory.newInstance(); CTRow row = table.addNewTr(); @@ -96,7 +96,7 @@ public class TestXWPFTable { } @Test - public void testCreateRow() throws IOException { + void testCreateRow() throws IOException { try (XWPFDocument doc = new XWPFDocument()) { CTTbl table = CTTbl.Factory.newInstance(); @@ -128,7 +128,7 @@ public class TestXWPFTable { } @Test - public void testSetGetWidth() throws IOException { + void testSetGetWidth() throws IOException { try (XWPFDocument doc = new XWPFDocument()) { XWPFTable xtab = doc.createTable(); @@ -191,7 +191,7 @@ public class TestXWPFTable { } @Test - public void testSetGetHeight() throws IOException { + void testSetGetHeight() throws IOException { try (XWPFDocument doc = new XWPFDocument()) { CTTbl table = CTTbl.Factory.newInstance(); @@ -204,7 +204,7 @@ public class TestXWPFTable { } @Test - public void testSetGetMargins() throws IOException { + void testSetGetMargins() throws IOException { // instantiate the following class so it'll get picked up by // the XmlBean process and added to the jar file. it's required // for the following XWPFTable methods. @@ -229,7 +229,7 @@ public class TestXWPFTable { } @Test - public void testSetGetHBorders() throws IOException { + void testSetGetHBorders() throws IOException { // instantiate the following classes so they'll get picked up by // the XmlBean process and added to the jar file. they are required // for the following XWPFTable methods. @@ -298,7 +298,7 @@ public class TestXWPFTable { } @Test - public void testSetGetVBorders() throws IOException { + void testSetGetVBorders() throws IOException { // create a table try (XWPFDocument doc = new XWPFDocument()) { CTTbl ctTable = CTTbl.Factory.newInstance(); @@ -364,7 +364,7 @@ public class TestXWPFTable { } @Test - public void testSetGetTopBorders() throws IOException { + void testSetGetTopBorders() throws IOException { // create a table try (XWPFDocument doc = new XWPFDocument()) { CTTbl ctTable = CTTbl.Factory.newInstance(); @@ -403,7 +403,7 @@ public class TestXWPFTable { } @Test - public void testSetGetBottomBorders() throws IOException { + void testSetGetBottomBorders() throws IOException { // create a table try (XWPFDocument doc = new XWPFDocument()) { CTTbl ctTable = CTTbl.Factory.newInstance(); @@ -442,7 +442,7 @@ public class TestXWPFTable { } @Test - public void testSetGetLeftBorders() throws IOException { + void testSetGetLeftBorders() throws IOException { // create a table try (XWPFDocument doc = new XWPFDocument()) { CTTbl ctTable = CTTbl.Factory.newInstance(); @@ -481,7 +481,7 @@ public class TestXWPFTable { } @Test - public void testSetGetRightBorders() throws IOException { + void testSetGetRightBorders() throws IOException { // create a table try (XWPFDocument doc = new XWPFDocument()) { CTTbl ctTable = CTTbl.Factory.newInstance(); @@ -520,7 +520,7 @@ public class TestXWPFTable { } @Test - public void testSetGetRowBandSize() throws IOException { + void testSetGetRowBandSize() throws IOException { try (XWPFDocument doc = new XWPFDocument()) { CTTbl ctTable = CTTbl.Factory.newInstance(); XWPFTable table = new XWPFTable(ctTable, doc); @@ -531,7 +531,7 @@ public class TestXWPFTable { } @Test - public void testSetGetColBandSize() throws IOException { + void testSetGetColBandSize() throws IOException { try (XWPFDocument doc = new XWPFDocument()) { CTTbl ctTable = CTTbl.Factory.newInstance(); XWPFTable table = new XWPFTable(ctTable, doc); @@ -542,7 +542,7 @@ public class TestXWPFTable { } @Test - public void testCreateTable() throws Exception { + void testCreateTable() throws Exception { // open an empty document try (XWPFDocument doc = XWPFTestDataSamples.openSampleDocument("sample.docx")) { @@ -577,7 +577,7 @@ public class TestXWPFTable { } @Test - public void testSetGetTableAlignment() throws IOException { + void testSetGetTableAlignment() throws IOException { try (XWPFDocument doc = new XWPFDocument()) { XWPFTable tbl = doc.createTable(1, 1); tbl.setTableAlignment(TableRowAlign.LEFT); Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFTableCell.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFTableCell.java?rev=1885283&r1=1885282&r2=1885283&view=diff ============================================================================== --- poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFTableCell.java (original) +++ poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFTableCell.java Sat Jan 9 00:46:52 2021 @@ -48,7 +48,7 @@ import java.util.List; public class TestXWPFTableCell { @Test - public void testSetGetVertAlignment() { + void testSetGetVertAlignment() { // instantiate the following classes so they'll get picked up by // the XmlBean process and added to the jar file. they are required // for the following XWPFTableCell methods. @@ -77,7 +77,7 @@ public class TestXWPFTableCell { } @Test - public void testSetGetColor() { + void testSetGetColor() { // create a table XWPFDocument doc = new XWPFDocument(); CTTbl ctTable = CTTbl.Factory.newInstance(); @@ -97,7 +97,7 @@ public class TestXWPFTableCell { * ensure that CTHMerge and CTTcBorders go in poi-ooxml.jar */ @Test - public void test54099() { + void test54099() { XWPFDocument doc = new XWPFDocument(); CTTbl ctTable = CTTbl.Factory.newInstance(); XWPFTable table = new XWPFTable(ctTable, doc); @@ -116,7 +116,7 @@ public class TestXWPFTableCell { } @Test - public void testCellVerticalAlign() throws Exception{ + void testCellVerticalAlign() throws Exception{ try (XWPFDocument docx = XWPFTestDataSamples.openSampleDocument("59030.docx")) { List<XWPFTable> tables = docx.getTables(); assertEquals(1, tables.size()); @@ -136,7 +136,7 @@ public class TestXWPFTableCell { // This is not a very useful test as written. It is not worth the execution time for a unit test @Disabled @Test - public void testCellVerticalAlignShouldNotThrowNPE() throws Exception { + void testCellVerticalAlignShouldNotThrowNPE() throws Exception { XWPFDocument docx = XWPFTestDataSamples.openSampleDocument("TestTableCellAlign.docx"); List<XWPFTable> tables = docx.getTables(); for (XWPFTable table : tables) { @@ -152,7 +152,7 @@ public class TestXWPFTableCell { } @Test - public void testCellGetSetWidth() throws Exception { + void testCellGetSetWidth() throws Exception { XWPFDocument doc = new XWPFDocument(); XWPFTable table = doc.createTable(); XWPFTableRow tr = table.createRow(); @@ -166,7 +166,7 @@ public class TestXWPFTableCell { } @Test - public void testAddParagraph() throws Exception { + void testAddParagraph() throws Exception { XWPFDocument doc = new XWPFDocument(); XWPFTable table = doc.createTable(); XWPFTableRow tr = table.createRow(); @@ -186,7 +186,7 @@ public class TestXWPFTableCell { } @Test - public void testRemoveParagraph() throws Exception { + void testRemoveParagraph() throws Exception { XWPFDocument doc = new XWPFDocument(); XWPFTable table = doc.createTable(); XWPFTableRow tr = table.createRow(); @@ -219,7 +219,7 @@ public class TestXWPFTableCell { } @Test - public void testRemoveTable() throws Exception { + void testRemoveTable() throws Exception { XWPFDocument doc = new XWPFDocument(); XWPFTable table = doc.createTable(); XWPFTableRow tr = table.createRow(); @@ -249,7 +249,7 @@ public class TestXWPFTableCell { } @Test - public void testBug63624() throws Exception { + void testBug63624() throws Exception { XWPFDocument doc = new XWPFDocument(); XWPFTable table = doc.createTable(1, 1); XWPFTableRow row = table.getRow(0); @@ -263,7 +263,7 @@ public class TestXWPFTableCell { } @Test - public void test63624() { + void test63624() { XWPFDocument doc = new XWPFDocument(); XWPFTable table = doc.createTable(1, 1); XWPFTableRow row = table.getRow(0); Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFTableRow.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFTableRow.java?rev=1885283&r1=1885282&r2=1885283&view=diff ============================================================================== --- poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFTableRow.java (original) +++ poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFTableRow.java Sat Jan 9 00:46:52 2021 @@ -31,7 +31,7 @@ import org.openxmlformats.schemas.wordpr public class TestXWPFTableRow { @Test - public void testCreateRow() throws IOException { + void testCreateRow() throws IOException { XWPFDocument doc = new XWPFDocument(); XWPFTable table = doc.createTable(1, 1); XWPFTableRow tr = table.createRow(); @@ -40,7 +40,7 @@ public class TestXWPFTableRow { } @Test - public void testSetGetCantSplitRow() throws IOException { + void testSetGetCantSplitRow() throws IOException { // create a table XWPFDocument doc = new XWPFDocument(); XWPFTable table = doc.createTable(1, 1); @@ -66,7 +66,7 @@ public class TestXWPFTableRow { } @Test - public void testSetGetRepeatHeader() throws IOException { + void testSetGetRepeatHeader() throws IOException { // create a table XWPFDocument doc = new XWPFDocument(); XWPFTable table = doc.createTable(3, 1); @@ -102,7 +102,7 @@ public class TestXWPFTableRow { // Test that validates the table header value can be parsed from a document // generated in Word @Test - public void testIsRepeatHeader() throws Exception { + void testIsRepeatHeader() throws Exception { try (XWPFDocument doc = XWPFTestDataSamples .openSampleDocument("Bug60337.docx")) { XWPFTable table = doc.getTables().get(0); @@ -124,7 +124,7 @@ public class TestXWPFTableRow { // Test that validates the table header value can be parsed from a document // generated in Word @Test - public void testIsCantSplit() throws Exception { + void testIsCantSplit() throws Exception { try (XWPFDocument doc = XWPFTestDataSamples .openSampleDocument("Bug60337.docx")) { XWPFTable table = doc.getTables().get(0); @@ -143,7 +143,7 @@ public class TestXWPFTableRow { } @Test - public void testRemoveCell() throws IOException { + void testRemoveCell() throws IOException { XWPFDocument doc = new XWPFDocument(); XWPFTableRow tr = doc.createTable(1, 1).createRow(); @@ -157,7 +157,7 @@ public class TestXWPFTableRow { } @Test - public void testGetSetHeightRule() throws IOException { + void testGetSetHeightRule() throws IOException { XWPFDocument doc = new XWPFDocument(); XWPFTableRow tr = doc.createTable(1, 1).createRow(); assertEquals(TableRowHeightRule.AUTO, tr.getHeightRule()); @@ -171,7 +171,7 @@ public class TestXWPFTableRow { } @Test - public void testBug62174() throws IOException { + void testBug62174() throws IOException { try (XWPFDocument doc = XWPFTestDataSamples .openSampleDocument("Bug60337.docx")) { XWPFTable table = doc.getTables().get(0); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@poi.apache.org For additional commands, e-mail: commits-h...@poi.apache.org