You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ki...@apache.org on 2021/01/09 00:46:54 UTC
svn commit: r1885283 [4/7] - in /poi/trunk/src: multimodule/ooxml/test9/
ooxml/testcases/org/apache/poi/extractor/ooxml/
ooxml/testcases/org/apache/poi/ooxml/
ooxml/testcases/org/apache/poi/openxml4j/opc/
ooxml/testcases/org/apache/poi/openxml4j/opc/co...
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestUnfixedBugs.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestUnfixedBugs.java?rev=1885283&r1=1885282&r2=1885283&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestUnfixedBugs.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestUnfixedBugs.java Sat Jan 9 00:46:52 2021
@@ -66,7 +66,7 @@ import org.openxmlformats.schemas.spread
*/
public final class TestUnfixedBugs {
@Test
- public void test54071() throws Exception {
+ void test54071() throws Exception {
Workbook workbook = XSSFTestDataSamples.openSampleWorkbook("54071.xlsx");
Sheet sheet = workbook.getSheetAt(0);
int rows = sheet.getPhysicalNumberOfRows();
@@ -95,7 +95,7 @@ public final class TestUnfixedBugs {
}
@Test
- public void test54071Simple() {
+ void test54071Simple() {
double value1 = 41224.999988425923;
double value2 = 41224.999988368058;
@@ -136,7 +136,7 @@ public final class TestUnfixedBugs {
// When this is fixed, the test case should go to BaseTestXCell with
// adjustments to use _testDataProvider to also verify this for XSSF
@Test
- public void testBug57294() throws IOException {
+ void testBug57294() throws IOException {
Workbook wb = SXSSFITestDataProvider.instance.createWorkbook();
Sheet sheet = wb.createSheet();
@@ -167,7 +167,7 @@ public final class TestUnfixedBugs {
// This test will run green, but the resulting file is formatted incorrectly,
// see the bug at https://bz.apache.org/bugzilla/show_bug.cgi?id=55752
@Test
- public void testBug55752() throws IOException {
+ void testBug55752() throws IOException {
try (Workbook wb = new XSSFWorkbook()) {
Sheet sheet = wb.createSheet("test");
@@ -223,7 +223,7 @@ public final class TestUnfixedBugs {
}
@Test
- public void test57423() throws IOException {
+ void test57423() throws IOException {
Workbook wb = XSSFTestDataSamples.openSampleWorkbook("57423.xlsx");
Sheet testSheet = wb.getSheetAt(0);
@@ -347,7 +347,7 @@ public final class TestUnfixedBugs {
}
@Test
- public void testBug60355() throws IOException {
+ void testBug60355() throws IOException {
try (Workbook workbook = XSSFTestDataSamples.openSampleWorkbook("HsGetVal.xlsx")){
Sheet sheet = workbook.getSheetAt(workbook.getActiveSheetIndex());
@@ -396,7 +396,7 @@ public final class TestUnfixedBugs {
}
@Test
- public void testBug64759() throws IOException {
+ void testBug64759() throws IOException {
try (Workbook wb = XSSFTestDataSamples.openSampleWorkbook("64759.xlsx")) {
Sheet cloned = wb.cloneSheet(0);
assertNotNull(cloned);
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFBugs.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFBugs.java?rev=1885283&r1=1885282&r2=1885283&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFBugs.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFBugs.java Sat Jan 9 00:46:52 2021
@@ -1601,7 +1601,7 @@ public final class TestXSSFBugs extends
@Test
- public void testBug53798XLSX() throws IOException {
+ void testBug53798XLSX() throws IOException {
try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("53798_shiftNegative_TMPL.xlsx")) {
File xlsOutput = TempFile.createTempFile("testBug53798", ".xlsx");
bug53798Work(wb, xlsOutput);
@@ -1610,7 +1610,7 @@ public final class TestXSSFBugs extends
@Disabled("Shifting rows is not yet implemented in SXSSFSheet")
@Test
- public void testBug53798XLSXStream() throws IOException {
+ void testBug53798XLSXStream() throws IOException {
try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("53798_shiftNegative_TMPL.xlsx")) {
File xlsOutput = TempFile.createTempFile("testBug53798", ".xlsx");
SXSSFWorkbook wb2 = new SXSSFWorkbook(wb);
@@ -1620,7 +1620,7 @@ public final class TestXSSFBugs extends
}
@Test
- public void testBug53798XLS() throws IOException {
+ void testBug53798XLS() throws IOException {
Workbook wb = HSSFTestDataSamples.openSampleWorkbook("53798_shiftNegative_TMPL.xls");
File xlsOutput = TempFile.createTempFile("testBug53798", ".xls");
bug53798Work(wb, xlsOutput);
@@ -1631,7 +1631,7 @@ public final class TestXSSFBugs extends
* SUMIF was throwing a NPE on some formulas
*/
@Test
- public void testBug56420SumIfNPE() throws IOException {
+ void testBug56420SumIfNPE() throws IOException {
try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("56420.xlsx")) {
FormulaEvaluator evaluator = wb.getCreationHelper().createFormulaEvaluator();
@@ -1793,28 +1793,28 @@ public final class TestXSSFBugs extends
}
@Test
- public void testBug56688_1() throws IOException {
+ void testBug56688_1() throws IOException {
XSSFWorkbook excel = XSSFTestDataSamples.openSampleWorkbook("56688_1.xlsx");
checkValue(excel, "-1.0"); /* Not 0.0 because POI sees date "0" minus one month as invalid date, which is -1! */
excel.close();
}
@Test
- public void testBug56688_2() throws IOException {
+ void testBug56688_2() throws IOException {
XSSFWorkbook excel = XSSFTestDataSamples.openSampleWorkbook("56688_2.xlsx");
checkValue(excel, "#VALUE!");
excel.close();
}
@Test
- public void testBug56688_3() throws IOException {
+ void testBug56688_3() throws IOException {
XSSFWorkbook excel = XSSFTestDataSamples.openSampleWorkbook("56688_3.xlsx");
checkValue(excel, "#VALUE!");
excel.close();
}
@Test
- public void testBug56688_4() throws IOException {
+ void testBug56688_4() throws IOException {
XSSFWorkbook excel = XSSFTestDataSamples.openSampleWorkbook("56688_4.xlsx");
Calendar calendar = LocaleUtil.getLocaleCalendar();
@@ -1831,7 +1831,7 @@ public final class TestXSSFBugs extends
* to be able to change it
*/
@Test
- public void testBug56527() throws IOException {
+ void testBug56527() throws IOException {
XSSFWorkbook wb = new XSSFWorkbook();
XSSFSheet sheet = wb.createSheet();
XSSFCreationHelper creationHelper = wb.getCreationHelper();
@@ -1911,7 +1911,7 @@ public final class TestXSSFBugs extends
}
@Test
- public void test54764WithSAXHelper() throws Exception {
+ void test54764WithSAXHelper() throws Exception {
File testFile = XSSFTestDataSamples.getSampleFile("54764.xlsx");
try (ZipFile zip = new ZipFile(testFile)) {
ZipArchiveEntry ze = zip.getEntry("xl/sharedStrings.xml");
@@ -1924,7 +1924,7 @@ public final class TestXSSFBugs extends
}
@Test
- public void test54764WithDocumentHelper() throws Exception {
+ void test54764WithDocumentHelper() throws Exception {
File testFile = XSSFTestDataSamples.getSampleFile("54764.xlsx");
try (ZipFile zip = new ZipFile(testFile)) {
ZipArchiveEntry ze = zip.getEntry("xl/sharedStrings.xml");
@@ -1983,7 +1983,7 @@ public final class TestXSSFBugs extends
}
@Test
- public void testBug57196() throws IOException {
+ void testBug57196() throws IOException {
try (Workbook wb = XSSFTestDataSamples.openSampleWorkbook("57196.xlsx")) {
Sheet sheet = wb.getSheet("Feuil1");
Row mod = sheet.getRow(1);
@@ -1996,7 +1996,7 @@ public final class TestXSSFBugs extends
}
@Test
- public void test57196_Detail() throws IOException {
+ void test57196_Detail() throws IOException {
XSSFWorkbook wb = new XSSFWorkbook();
XSSFSheet sheet = wb.createSheet("Sheet1");
XSSFRow row = sheet.createRow(0);
@@ -2010,7 +2010,7 @@ public final class TestXSSFBugs extends
}
@Test
- public void test57196_Detail2() throws IOException {
+ void test57196_Detail2() throws IOException {
XSSFWorkbook wb = new XSSFWorkbook();
XSSFSheet sheet = wb.createSheet("Sheet1");
XSSFRow row = sheet.createRow(0);
@@ -2024,7 +2024,7 @@ public final class TestXSSFBugs extends
}
@Test
- public void test57196_WorkbookEvaluator() throws IOException {
+ void test57196_WorkbookEvaluator() throws IOException {
String previousLogger = System.getProperty("org.apache.poi.util.POILogger");
//System.setProperty("org.apache.poi.util.POILogger", "org.apache.poi.util.SystemOutLogger");
//System.setProperty("poi.log.level", "3");
@@ -2179,7 +2179,7 @@ public final class TestXSSFBugs extends
@Test
- public void test57165() throws IOException {
+ void test57165() throws IOException {
try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("57171_57163_57165.xlsx")) {
removeAllSheetsBut(3, wb);
wb.cloneSheet(0); // Throws exception here
@@ -2192,7 +2192,7 @@ public final class TestXSSFBugs extends
}
@Test
- public void test57165_create() throws IOException {
+ void test57165_create() throws IOException {
try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("57171_57163_57165.xlsx")) {
removeAllSheetsBut(3, wb);
wb.createSheet("newsheet"); // Throws exception here
@@ -2235,7 +2235,7 @@ public final class TestXSSFBugs extends
* [ 0][ 2][ 4]
*/
@Test
- public void testBug56820_Formula1() throws IOException {
+ void testBug56820_Formula1() throws IOException {
try (Workbook wb = new XSSFWorkbook()) {
FormulaEvaluator evaluator = wb.getCreationHelper().createFormulaEvaluator();
Sheet sh = wb.createSheet();
@@ -2262,7 +2262,7 @@ public final class TestXSSFBugs extends
* [ 4] <- formula
*/
@Test
- public void testBug56820_Formula2() throws IOException {
+ void testBug56820_Formula2() throws IOException {
try (Workbook wb = new XSSFWorkbook()) {
FormulaEvaluator evaluator = wb.getCreationHelper().createFormulaEvaluator();
Sheet sh = wb.createSheet();
@@ -2282,7 +2282,7 @@ public final class TestXSSFBugs extends
}
@Test
- public void test56467() throws IOException {
+ void test56467() throws IOException {
try (Workbook wb = XSSFTestDataSamples.openSampleWorkbook("picture.xlsx")) {
Sheet orig = wb.getSheetAt(0);
assertNotNull(orig);
@@ -2305,7 +2305,7 @@ public final class TestXSSFBugs extends
*/
@Test
@Disabled("XMLBeans namespace mis-match on ooxml-strict files")
- public void test57699() throws IOException {
+ void test57699() throws IOException {
try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("sample.strict.xlsx")) {
assertEquals(3, wb.getNumberOfSheets());
// TODO Check sheet contents
@@ -2320,7 +2320,7 @@ public final class TestXSSFBugs extends
}
@Test
- public void testBug56295_MergeXlslsWithStyles() throws IOException {
+ void testBug56295_MergeXlslsWithStyles() throws IOException {
XSSFWorkbook xlsToAppendWorkbook = XSSFTestDataSamples.openSampleWorkbook("56295.xlsx");
XSSFSheet sheet = xlsToAppendWorkbook.getSheetAt(0);
XSSFRow srcRow = sheet.getRow(0);
@@ -2370,7 +2370,7 @@ public final class TestXSSFBugs extends
* Excel treats this as not-bulleted, so now do we
*/
@Test
- public void testBug57826() throws IOException {
+ void testBug57826() throws IOException {
XSSFWorkbook workbook = XSSFTestDataSamples.openSampleWorkbook("57826.xlsx");
assertTrue(workbook.getNumberOfSheets() >= 1, "no sheets in workbook");
@@ -2468,7 +2468,7 @@ public final class TestXSSFBugs extends
@Test
- public void test56574() throws IOException {
+ void test56574() throws IOException {
runTest56574(false);
runTest56574(true);
}
@@ -2566,7 +2566,7 @@ public final class TestXSSFBugs extends
}
@Test
- public void test48962() throws IOException {
+ void test48962() throws IOException {
try (Workbook wb = XSSFTestDataSamples.openSampleWorkbook("48962.xlsx")) {
Sheet sh = wb.getSheetAt(0);
Row row = sh.getRow(1);
@@ -2591,7 +2591,7 @@ public final class TestXSSFBugs extends
}
@Test
- public void test50755_workday_formula_example() throws IOException {
+ void test50755_workday_formula_example() throws IOException {
try (Workbook wb = XSSFTestDataSamples.openSampleWorkbook("50755_workday_formula_example.xlsx")) {
Sheet sheet = wb.getSheet("Sheet1");
for (Row aRow : sheet) {
@@ -2608,7 +2608,7 @@ public final class TestXSSFBugs extends
}
@Test
- public void test51626() throws IOException {
+ void test51626() throws IOException {
Workbook wb = XSSFTestDataSamples.openSampleWorkbook("51626.xlsx");
assertNotNull(wb);
wb.close();
@@ -2629,7 +2629,7 @@ public final class TestXSSFBugs extends
}
@Test
- public void test51451() throws IOException {
+ void test51451() throws IOException {
Workbook wb = new XSSFWorkbook();
Sheet sh = wb.createSheet();
@@ -2651,7 +2651,7 @@ public final class TestXSSFBugs extends
}
@Test
- public void test53105() throws IOException {
+ void test53105() throws IOException {
try (Workbook wb = XSSFTestDataSamples.openSampleWorkbook("53105.xlsx")) {
assertNotNull(wb);
@@ -2668,7 +2668,7 @@ public final class TestXSSFBugs extends
@Test
- public void test58315() throws IOException {
+ void test58315() throws IOException {
try (Workbook wb = XSSFTestDataSamples.openSampleWorkbook("58315.xlsx")) {
Cell cell = wb.getSheetAt(0).getRow(0).getCell(0);
assertNotNull(cell);
@@ -2687,7 +2687,7 @@ public final class TestXSSFBugs extends
}
@Test
- public void test55406() throws IOException {
+ void test55406() throws IOException {
try (Workbook wb = XSSFTestDataSamples.openSampleWorkbook("55406_Conditional_formatting_sample.xlsx")) {
Sheet sheet = wb.getSheetAt(0);
Cell cellA1 = sheet.getRow(0).getCell(0);
@@ -2714,7 +2714,7 @@ public final class TestXSSFBugs extends
}
@Test
- public void test51998() throws IOException {
+ void test51998() throws IOException {
Workbook wb = XSSFTestDataSamples.openSampleWorkbook("51998.xlsx");
Set<String> sheetNames = new HashSet<>();
@@ -2743,7 +2743,7 @@ public final class TestXSSFBugs extends
}
@Test
- public void test58731() throws IOException {
+ void test58731() throws IOException {
try (Workbook wb = XSSFTestDataSamples.openSampleWorkbook("58731.xlsx")) {
Sheet sheet = wb.createSheet("Java Books");
@@ -2785,7 +2785,7 @@ public final class TestXSSFBugs extends
* ! Rule: Package require content types when retrieving a part from a package. [M.1.14]
*/
@Test
- public void test58760() throws IOException {
+ void test58760() throws IOException {
Workbook wb1 = XSSFTestDataSamples.openSampleWorkbook("58760.xlsx");
assertEquals(1, wb1.getNumberOfSheets());
assertEquals("Sheet1", wb1.getSheetName(0));
@@ -2797,7 +2797,7 @@ public final class TestXSSFBugs extends
}
@Test
- public void test57236() throws IOException {
+ void test57236() throws IOException {
// Having very small numbers leads to different formatting, Excel uses the scientific notation, but POI leads to "0"
/*
@@ -2852,13 +2852,13 @@ public final class TestXSSFBugs extends
@Disabled("Creates files for checking results manually, actual values are tested in Test*CellStyle")
@Test
- public void test58043() throws IOException {
+ void test58043() throws IOException {
saveRotatedTextExample(new HSSFWorkbook(), TempFile.createTempFile("rotated", ".xls"));
saveRotatedTextExample(new XSSFWorkbook(), TempFile.createTempFile("rotated", ".xlsx"));
}
@Test
- public void test59132() throws IOException {
+ void test59132() throws IOException {
Workbook workbook = XSSFTestDataSamples.openSampleWorkbook("59132.xlsx");
Sheet worksheet = workbook.getSheet("sheet1");
@@ -2909,7 +2909,7 @@ public final class TestXSSFBugs extends
@Disabled("bug 59442")
@Test
- public void testSetRGBBackgroundColor() throws IOException {
+ void testSetRGBBackgroundColor() throws IOException {
XSSFWorkbook workbook = new XSSFWorkbook();
XSSFCell cell = workbook.createSheet().createRow(0).createCell(0);
@@ -2953,7 +2953,7 @@ public final class TestXSSFBugs extends
@Disabled("currently fails on POI 3.15 beta 2")
@Test
- public void test55273() throws IOException {
+ void test55273() throws IOException {
try (Workbook wb = XSSFTestDataSamples.openSampleWorkbook("ExcelTables.xlsx")) {
Sheet sheet = wb.getSheet("ExcelTable");
@@ -2971,7 +2971,7 @@ public final class TestXSSFBugs extends
}
@Test
- public void test57523() throws IOException {
+ void test57523() throws IOException {
try (Workbook wb = XSSFTestDataSamples.openSampleWorkbook("57523.xlsx")) {
Sheet sheet = wb.getSheet("Attribute Master");
Row row = sheet.getRow(15);
@@ -3005,7 +3005,7 @@ public final class TestXSSFBugs extends
}
@Test
- public void testWorkdayFunction() throws IOException {
+ void testWorkdayFunction() throws IOException {
try (XSSFWorkbook workbook = XSSFTestDataSamples.openSampleWorkbook("59106.xlsx")) {
XSSFSheet sheet = workbook.getSheet("Test");
Row row = sheet.getRow(1);
@@ -3020,7 +3020,7 @@ public final class TestXSSFBugs extends
// This bug is currently open. When this bug is fixed, it should not throw an AssertionError
@Test
- public void test55076_collapseColumnGroups() throws Exception {
+ void test55076_collapseColumnGroups() throws Exception {
try (Workbook wb = new XSSFWorkbook()) {
Sheet sheet = wb.createSheet();
@@ -3103,7 +3103,7 @@ public final class TestXSSFBugs extends
}
@Test
- public void test53611() throws IOException {
+ void test53611() throws IOException {
Workbook wb = new XSSFWorkbook();
Sheet sheet = wb.createSheet("test");
Row row = sheet.createRow(1);
@@ -3126,7 +3126,7 @@ public final class TestXSSFBugs extends
}
@Test
- public void test61798() throws IOException {
+ void test61798() throws IOException {
Workbook wb = new XSSFWorkbook();
Sheet sheet = wb.createSheet("test");
Row row = sheet.createRow(1);
@@ -3220,7 +3220,7 @@ public final class TestXSSFBugs extends
}
@Test
- public void test61652() throws IOException {
+ void test61652() throws IOException {
try (Workbook wb = XSSFTestDataSamples.openSampleWorkbook("61652.xlsx")) {
Sheet sheet = wb.getSheet("IRPPCalc");
Row row = sheet.getRow(11);
@@ -3239,7 +3239,7 @@ public final class TestXSSFBugs extends
}
@Test
- public void test61543() throws IOException {
+ void test61543() throws IOException {
try (XSSFWorkbook wb = new XSSFWorkbook()) {
XSSFSheet sheet = wb.createSheet();
XSSFTable table1 = sheet.createTable(null);
@@ -3262,7 +3262,7 @@ public final class TestXSSFBugs extends
* errors like ArrayIndexOutOfBoundsException: -32765
*/
@Test
- public void test62108() throws IOException {
+ void test62108() throws IOException {
try (XSSFWorkbook wb = new XSSFWorkbook()) {
XSSFSheet sheet = wb.createSheet();
XSSFRow row = sheet.createRow(0);
@@ -3302,14 +3302,14 @@ public final class TestXSSFBugs extends
}
@Test
- public void test61905xlsx() throws IOException {
+ void test61905xlsx() throws IOException {
try (Workbook wb = new XSSFWorkbook()) {
checkActiveSheet(wb, XSSFITestDataProvider.instance);
}
}
@Test
- public void test61905xls() throws IOException {
+ void test61905xls() throws IOException {
try (Workbook wb = new HSSFWorkbook()) {
checkActiveSheet(wb, HSSFITestDataProvider.instance);
}
@@ -3327,7 +3327,7 @@ public final class TestXSSFBugs extends
}
@Test
- public void testBug54084Unicode() throws IOException {
+ void testBug54084Unicode() throws IOException {
// sample XLSX with the same text-contents as the text-file above
try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("54084 - Greek - beyond BMP.xlsx")) {
@@ -3451,7 +3451,7 @@ public final class TestXSSFBugs extends
}
@Test
- public void testBug63509() throws IOException {
+ void testBug63509() throws IOException {
try (XSSFWorkbook workbook = new XSSFWorkbook()) {
XSSFSheet sheet = workbook.createSheet("sheet1");
@@ -3476,13 +3476,13 @@ public final class TestXSSFBugs extends
}
@Test
- public void test64045() {
+ void test64045() {
File file = XSSFTestDataSamples.getSampleFile("xlsx-corrupted.xlsx");
assertThrows(POIXMLException.class, () -> new XSSFWorkbook(file), "Should catch exception as the file is corrupted");
}
@Test
- public void test58896WithFile() throws IOException {
+ void test58896WithFile() throws IOException {
try (Workbook wb = XSSFTestDataSamples.openSampleWorkbook("58896.xlsx")) {
Sheet sheet = wb.getSheetAt(0);
Instant start = Instant.now();
@@ -3505,7 +3505,7 @@ public final class TestXSSFBugs extends
}
@Test
- public void testBug63845() throws IOException {
+ void testBug63845() throws IOException {
try (Workbook wb = new XSSFWorkbook()) {
Sheet sheet = wb.createSheet();
Row row = sheet.createRow(0);
@@ -3537,7 +3537,7 @@ public final class TestXSSFBugs extends
}
@Test
- public void testBug63845_2() throws IOException {
+ void testBug63845_2() throws IOException {
try (Workbook wb = new XSSFWorkbook()) {
Sheet sheet = wb.createSheet("test");
Row row = sheet.createRow(0);
@@ -3560,7 +3560,7 @@ public final class TestXSSFBugs extends
}
@Test
- public void testBug64508() throws IOException {
+ void testBug64508() throws IOException {
try (Workbook wb = XSSFTestDataSamples.openSampleWorkbook("64508.xlsx")) {
int activeSheet = wb.getActiveSheetIndex();
Sheet sheet1 = wb.getSheetAt(activeSheet);
@@ -3573,7 +3573,7 @@ public final class TestXSSFBugs extends
}
@Test
- public void testBug64667() throws IOException {
+ void testBug64667() throws IOException {
//test that an NPE isn't thrown on opening
try (Workbook wb = XSSFTestDataSamples.openSampleWorkbook("64667.xlsx")) {
int activeSheet = wb.getActiveSheetIndex();
@@ -3585,7 +3585,7 @@ public final class TestXSSFBugs extends
@Test
- public void testXLSXinPPT() throws Exception {
+ void testXLSXinPPT() throws Exception {
assumeFalse(Boolean.getBoolean("scratchpad.ignore"));
try (SlideShow<?,?> ppt = SlideShowFactory.create(
@@ -3630,7 +3630,7 @@ public final class TestXSSFBugs extends
}
@Test
- public void test64986() {
+ void test64986() {
XSSFWorkbook w = new XSSFWorkbook();
XSSFSheet s = w.createSheet();
XSSFRow r = s.createRow(0);
@@ -3654,7 +3654,7 @@ public final class TestXSSFBugs extends
}
@Test
- public void test64750() throws IOException {
+ void test64750() throws IOException {
try (Workbook wb = XSSFTestDataSamples.openSampleWorkbook("64750.xlsx")) {
Sheet sheet = wb.getSheet("Sheet1");
assertEquals(1, sheet.getDataValidations().size());
@@ -3662,14 +3662,14 @@ public final class TestXSSFBugs extends
}
@Test
- public void test64450() throws IOException {
+ void test64450() throws IOException {
try (Workbook wb = XSSFTestDataSamples.openSampleWorkbook("64450.xlsx")) {
assertNotNull(wb);
}
}
@Test
- public void test64494() throws IOException {
+ void test64494() throws IOException {
try (Workbook wb = new XSSFWorkbook()) {
CellStyle styleRight = wb.createCellStyle();
CellStyle styleLeft = wb.createCellStyle();
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFCell.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFCell.java?rev=1885283&r1=1885282&r2=1885283&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFCell.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFCell.java Sat Jan 9 00:46:52 2021
@@ -74,7 +74,7 @@ public final class TestXSSFCell extends
* Shared String Table
*/
@Test
- public void test47026_1() throws IOException {
+ void test47026_1() throws IOException {
Workbook wb = _testDataProvider.openSampleWorkbook("47026.xlsm");
Sheet sheet = wb.getSheetAt(0);
Row row = sheet.getRow(0);
@@ -84,7 +84,7 @@ public final class TestXSSFCell extends
}
@Test
- public void test47026_2() throws IOException {
+ void test47026_2() throws IOException {
Workbook wb = _testDataProvider.openSampleWorkbook("47026.xlsm");
Sheet sheet = wb.getSheetAt(0);
Row row = sheet.getRow(0);
@@ -102,7 +102,7 @@ public final class TestXSSFCell extends
* instead of using the shared string table. See bug 47206
*/
@Test
- public void testInlineString() throws IOException {
+ void testInlineString() throws IOException {
XSSFWorkbook wb = (XSSFWorkbook)_testDataProvider.openSampleWorkbook("xlsx-jdbc.xlsx");
XSSFSheet sheet = wb.getSheetAt(0);
XSSFRow row = sheet.getRow(1);
@@ -128,7 +128,7 @@ public final class TestXSSFCell extends
* Bug 47278 - xsi:nil attribute for <t> tag caused Excel 2007 to fail to open workbook
*/
@Test
- public void test47278() throws IOException {
+ void test47278() throws IOException {
XSSFWorkbook wb = (XSSFWorkbook)_testDataProvider.createWorkbook();
Sheet sheet = wb.createSheet();
Row row = sheet.createRow(0);
@@ -159,7 +159,7 @@ public final class TestXSSFCell extends
}
@Test
- public void testFormulaString() throws IOException {
+ void testFormulaString() throws IOException {
try (XSSFWorkbook wb = (XSSFWorkbook) _testDataProvider.createWorkbook()) {
XSSFCell cell = wb.createSheet().createRow(0).createCell(0);
CTCell ctCell = cell.getCTCell(); //low-level bean holding cell's xml
@@ -218,7 +218,7 @@ public final class TestXSSFCell extends
* Bug 47889: problems when calling XSSFCell.getStringCellValue() on a workbook created in Gnumeric
*/
@Test
- public void test47889() throws IOException {
+ void test47889() throws IOException {
XSSFWorkbook wb = (XSSFWorkbook)_testDataProvider.openSampleWorkbook("47889.xlsx");
XSSFSheet sh = wb.getSheetAt(0);
@@ -245,7 +245,7 @@ public final class TestXSSFCell extends
}
@Test
- public void testMissingRAttribute() throws IOException {
+ void testMissingRAttribute() throws IOException {
XSSFWorkbook wb1 = new XSSFWorkbook();
XSSFSheet sheet = wb1.createSheet();
XSSFRow row = sheet.createRow(0);
@@ -300,7 +300,7 @@ public final class TestXSSFCell extends
}
@Test
- public void testMissingRAttributeBug54288() throws IOException {
+ void testMissingRAttributeBug54288() throws IOException {
// workbook with cells missing the R attribute
XSSFWorkbook wb = (XSSFWorkbook)_testDataProvider.openSampleWorkbook("54288.xlsx");
// same workbook re-saved in Excel 2010, the R attribute is updated for every cell with the right value.
@@ -343,7 +343,7 @@ public final class TestXSSFCell extends
}
@Test
- public void test56170() throws IOException {
+ void test56170() throws IOException {
final Workbook wb1 = XSSFTestDataSamples.openSampleWorkbook("56170.xlsx");
final XSSFSheet sheet = (XSSFSheet) wb1.getSheetAt(0);
@@ -400,7 +400,7 @@ public final class TestXSSFCell extends
}
@Test
- public void test56170Reproduce() throws IOException {
+ void test56170Reproduce() throws IOException {
try (Workbook wb = new XSSFWorkbook()) {
final Sheet sheet = wb.createSheet();
Row row = sheet.createRow(0);
@@ -442,7 +442,7 @@ public final class TestXSSFCell extends
}
@Test
- public void testBug56644ReturnNull() throws IOException {
+ void testBug56644ReturnNull() throws IOException {
try (Workbook wb = XSSFTestDataSamples.openSampleWorkbook("56644.xlsx")) {
wb.setMissingCellPolicy(MissingCellPolicy.RETURN_BLANK_AS_NULL);
Sheet sheet = wb.getSheet("samplelist");
@@ -452,7 +452,7 @@ public final class TestXSSFCell extends
}
@Test
- public void testBug56644ReturnBlank() throws IOException {
+ void testBug56644ReturnBlank() throws IOException {
try (Workbook wb = XSSFTestDataSamples.openSampleWorkbook("56644.xlsx")) {
wb.setMissingCellPolicy(MissingCellPolicy.RETURN_NULL_AND_BLANK);
Sheet sheet = wb.getSheet("samplelist");
@@ -462,7 +462,7 @@ public final class TestXSSFCell extends
}
@Test
- public void testBug56644CreateBlank() throws IOException {
+ void testBug56644CreateBlank() throws IOException {
try (Workbook wb = XSSFTestDataSamples.openSampleWorkbook("56644.xlsx")) {
wb.setMissingCellPolicy(MissingCellPolicy.CREATE_NULL_AS_BLANK);
Sheet sheet = wb.getSheet("samplelist");
@@ -472,7 +472,7 @@ public final class TestXSSFCell extends
}
@Test
- public void testEncodingBelowAscii() throws IOException {
+ void testEncodingBelowAscii() throws IOException {
StringBuilder sb = new StringBuilder();
// test all possible characters
for(int i = 0; i < Character.MAX_VALUE; i++) {
@@ -681,7 +681,7 @@ public final class TestXSSFCell extends
* Bug 61869: updating a shared formula produces an unreadable file
*/
@Test
- public void test61869() throws Exception {
+ void test61869() throws Exception {
try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("61869.xlsx")) {
XSSFSheet sheet = wb.getSheetAt(0);
XSSFCell c2 = sheet.getRow(1).getCell(2);
@@ -708,7 +708,7 @@ public final class TestXSSFCell extends
}
@Test
- public void testBug58106RemoveSharedFormula() throws Exception {
+ void testBug58106RemoveSharedFormula() throws Exception {
try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("58106.xlsx")) {
XSSFSheet sheet = wb.getSheetAt(0);
XSSFRow row = sheet.getRow(12);
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFCellStyle.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFCellStyle.java?rev=1885283&r1=1885282&r2=1885283&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFCellStyle.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFCellStyle.java Sat Jan 9 00:46:52 2021
@@ -107,7 +107,7 @@ public class TestXSSFCellStyle {
}
@Test
- public void testGetSetBorderBottom() {
+ void testGetSetBorderBottom() {
//default values
assertEquals(BorderStyle.NONE, cellStyle.getBorderBottom());
@@ -145,7 +145,7 @@ public class TestXSSFCellStyle {
}
@Test
- public void testGetSetBorderRight() {
+ void testGetSetBorderRight() {
//default values
assertEquals(BorderStyle.NONE, cellStyle.getBorderRight());
@@ -183,7 +183,7 @@ public class TestXSSFCellStyle {
}
@Test
- public void testGetSetBorderLeft() {
+ void testGetSetBorderLeft() {
//default values
assertEquals(BorderStyle.NONE, cellStyle.getBorderLeft());
@@ -221,7 +221,7 @@ public class TestXSSFCellStyle {
}
@Test
- public void testGetSetBorderTop() {
+ void testGetSetBorderTop() {
//default values
assertEquals(BorderStyle.NONE, cellStyle.getBorderTop());
@@ -271,7 +271,7 @@ public class TestXSSFCellStyle {
// Border Styles, in BorderStyle/STBorderStyle enum order
@Test
- public void testGetSetBorderNone() {
+ void testGetSetBorderNone() {
cellStyle.setBorderTop(BorderStyle.NONE);
assertEquals(BorderStyle.NONE, cellStyle.getBorderTop());
int borderId = (int)cellStyle.getCoreXf().getBorderId();
@@ -288,72 +288,72 @@ public class TestXSSFCellStyle {
}
@Test
- public void testGetSetBorderThin() {
+ void testGetSetBorderThin() {
testGetSetBorderXMLBean(BorderStyle.THIN, STBorderStyle.THIN);
}
@Test
- public void testGetSetBorderMedium() {
+ void testGetSetBorderMedium() {
testGetSetBorderXMLBean(BorderStyle.MEDIUM, STBorderStyle.MEDIUM);
}
@Test
- public void testGetSetBorderDashed() {
+ void testGetSetBorderDashed() {
testGetSetBorderXMLBean(BorderStyle.DASHED, STBorderStyle.DASHED);
}
@Test
- public void testGetSetBorderDotted() {
+ void testGetSetBorderDotted() {
testGetSetBorderXMLBean(BorderStyle.DOTTED, STBorderStyle.DOTTED);
}
@Test
- public void testGetSetBorderThick() {
+ void testGetSetBorderThick() {
testGetSetBorderXMLBean(BorderStyle.THICK, STBorderStyle.THICK);
}
@Test
- public void testGetSetBorderDouble() {
+ void testGetSetBorderDouble() {
testGetSetBorderXMLBean(BorderStyle.DOUBLE, STBorderStyle.DOUBLE);
}
@Test
- public void testGetSetBorderHair() {
+ void testGetSetBorderHair() {
testGetSetBorderXMLBean(BorderStyle.HAIR, STBorderStyle.HAIR);
}
@Test
- public void testGetSetBorderMediumDashed() {
+ void testGetSetBorderMediumDashed() {
testGetSetBorderXMLBean(BorderStyle.MEDIUM_DASHED, STBorderStyle.MEDIUM_DASHED);
}
@Test
- public void testGetSetBorderDashDot() {
+ void testGetSetBorderDashDot() {
testGetSetBorderXMLBean(BorderStyle.DASH_DOT, STBorderStyle.DASH_DOT);
}
@Test
- public void testGetSetBorderMediumDashDot() {
+ void testGetSetBorderMediumDashDot() {
testGetSetBorderXMLBean(BorderStyle.MEDIUM_DASH_DOT, STBorderStyle.MEDIUM_DASH_DOT);
}
@Test
- public void testGetSetBorderDashDotDot() {
+ void testGetSetBorderDashDotDot() {
testGetSetBorderXMLBean(BorderStyle.DASH_DOT_DOT, STBorderStyle.DASH_DOT_DOT);
}
@Test
- public void testGetSetBorderMediumDashDotDot() {
+ void testGetSetBorderMediumDashDotDot() {
testGetSetBorderXMLBean(BorderStyle.MEDIUM_DASH_DOT_DOT, STBorderStyle.MEDIUM_DASH_DOT_DOT);
}
@Test
- public void testGetSetBorderSlantDashDot() {
+ void testGetSetBorderSlantDashDot() {
testGetSetBorderXMLBean(BorderStyle.SLANTED_DASH_DOT, STBorderStyle.SLANT_DASH_DOT);
}
@Test
- public void testGetSetBottomBorderColor() {
+ void testGetSetBottomBorderColor() {
//defaults
assertEquals(IndexedColors.BLACK.getIndex(), cellStyle.getBottomBorderColor());
assertNull(cellStyle.getBottomBorderXSSFColor());
@@ -394,7 +394,7 @@ public class TestXSSFCellStyle {
}
@Test
- public void testGetSetTopBorderColor() {
+ void testGetSetTopBorderColor() {
//defaults
assertEquals(IndexedColors.BLACK.getIndex(), cellStyle.getTopBorderColor());
assertNull(cellStyle.getTopBorderXSSFColor());
@@ -435,7 +435,7 @@ public class TestXSSFCellStyle {
}
@Test
- public void testGetSetLeftBorderColor() {
+ void testGetSetLeftBorderColor() {
//defaults
assertEquals(IndexedColors.BLACK.getIndex(), cellStyle.getLeftBorderColor());
assertNull(cellStyle.getLeftBorderXSSFColor());
@@ -476,7 +476,7 @@ public class TestXSSFCellStyle {
}
@Test
- public void testGetSetRightBorderColor() {
+ void testGetSetRightBorderColor() {
//defaults
assertEquals(IndexedColors.BLACK.getIndex(), cellStyle.getRightBorderColor());
assertNull(cellStyle.getRightBorderXSSFColor());
@@ -517,7 +517,7 @@ public class TestXSSFCellStyle {
}
@Test
- public void testGetSetFillBackgroundColor() {
+ void testGetSetFillBackgroundColor() {
assertEquals(IndexedColors.AUTOMATIC.getIndex(), cellStyle.getFillBackgroundColor());
assertNull(cellStyle.getFillBackgroundXSSFColor());
@@ -559,7 +559,7 @@ public class TestXSSFCellStyle {
}
@Test
- public void testDefaultStyles() throws IOException {
+ void testDefaultStyles() throws IOException {
XSSFWorkbook wb1 = new XSSFWorkbook();
@@ -591,7 +591,7 @@ public class TestXSSFCellStyle {
}
@Test
- public void testGetFillForegroundColor() throws IOException {
+ void testGetFillForegroundColor() throws IOException {
XSSFWorkbook wb = new XSSFWorkbook();
StylesTable styles = wb.getStylesSource();
assertEquals(1, wb.getNumCellStyles());
@@ -629,7 +629,7 @@ public class TestXSSFCellStyle {
}
@Test
- public void testGetFillPattern() {
+ void testGetFillPattern() {
assertEquals(STPatternType.INT_DARK_GRAY-1, cellStyle.getFillPattern().getCode());
@@ -657,12 +657,12 @@ public class TestXSSFCellStyle {
}
@Test
- public void testGetFont() {
+ void testGetFont() {
assertNotNull(cellStyle.getFont());
}
@Test
- public void testGetSetHidden() {
+ void testGetSetHidden() {
assertFalse(cellStyle.getHidden());
cellStyle.setHidden(true);
assertTrue(cellStyle.getHidden());
@@ -671,7 +671,7 @@ public class TestXSSFCellStyle {
}
@Test
- public void testGetSetLocked() {
+ void testGetSetLocked() {
assertTrue(cellStyle.getLocked());
cellStyle.setLocked(true);
assertTrue(cellStyle.getLocked());
@@ -680,7 +680,7 @@ public class TestXSSFCellStyle {
}
@Test
- public void testGetSetIndent() {
+ void testGetSetIndent() {
assertEquals((short)0, cellStyle.getIndention());
cellStyle.setIndention((short)3);
assertEquals((short)3, cellStyle.getIndention());
@@ -689,7 +689,7 @@ public class TestXSSFCellStyle {
}
@Test
- public void testGetSetAlignment() {
+ void testGetSetAlignment() {
assertNull(cellStyle.getCellAlignment().getCTCellAlignment().getHorizontal());
assertEquals(HorizontalAlignment.GENERAL, cellStyle.getAlignment());
@@ -707,7 +707,7 @@ public class TestXSSFCellStyle {
}
@Test
- public void testGetSetReadingOrder() {
+ void testGetSetReadingOrder() {
assertEquals(ReadingOrder.CONTEXT, cellStyle.getReadingOrder());
assertEquals(ReadingOrder.CONTEXT.getCode(), cellStyle.getCellAlignment().getCTCellAlignment().getReadingOrder());
@@ -725,7 +725,7 @@ public class TestXSSFCellStyle {
}
@Test
- public void testGetSetVerticalAlignment() {
+ void testGetSetVerticalAlignment() {
assertEquals(VerticalAlignment.BOTTOM, cellStyle.getVerticalAlignment());
assertFalse(cellStyle.getCellAlignment().getCTCellAlignment().isSetVertical());
assertEquals(STVerticalAlignment.BOTTOM, cellStyle.getCellAlignment().getCTCellAlignment().getVertical());
@@ -740,7 +740,7 @@ public class TestXSSFCellStyle {
}
@Test
- public void testGetSetWrapText() {
+ void testGetSetWrapText() {
assertFalse(cellStyle.getWrapText());
cellStyle.setWrapText(true);
assertTrue(cellStyle.getWrapText());
@@ -752,7 +752,7 @@ public class TestXSSFCellStyle {
* Cloning one XSSFCellStyle onto Another, same XSSFWorkbook
*/
@Test
- public void testCloneStyleSameWB() throws IOException {
+ void testCloneStyleSameWB() throws IOException {
XSSFWorkbook wb = new XSSFWorkbook();
assertEquals(1, wb.getNumberOfFonts());
@@ -791,7 +791,7 @@ public class TestXSSFCellStyle {
* Cloning one XSSFCellStyle onto Another, different XSSFWorkbooks
*/
@Test
- public void testCloneStyleDiffWB() throws IOException {
+ void testCloneStyleDiffWB() throws IOException {
XSSFWorkbook wbOrig = new XSSFWorkbook();
assertEquals(1, wbOrig.getNumberOfFonts());
assertEquals(0, wbOrig.getStylesSource().getNumberFormats().size());
@@ -883,7 +883,7 @@ public class TestXSSFCellStyle {
* in a workbook that has an empty xf table.
*/
@Test
- public void testBug52348() throws IOException {
+ void testBug52348() throws IOException {
XSSFWorkbook workbook = XSSFTestDataSamples.openSampleWorkbook("52348.xlsx");
StylesTable st = workbook.getStylesSource();
assertEquals(0, st._getStyleXfsSize());
@@ -902,7 +902,7 @@ public class TestXSSFCellStyle {
* in a workbook that has an empty xf table.
*/
@Test
- public void testBug55650() throws IOException {
+ void testBug55650() throws IOException {
XSSFWorkbook workbook = XSSFTestDataSamples.openSampleWorkbook("52348.xlsx");
StylesTable st = workbook.getStylesSource();
assertEquals(0, st._getStyleXfsSize());
@@ -919,7 +919,7 @@ public class TestXSSFCellStyle {
}
@Test
- public void testShrinkToFit() throws IOException {
+ void testShrinkToFit() throws IOException {
// Existing file
XSSFWorkbook wb1 = XSSFTestDataSamples.openSampleWorkbook("ShrinkToFit.xlsx");
Sheet s = wb1.getSheetAt(0);
@@ -963,7 +963,7 @@ public class TestXSSFCellStyle {
}
@Test
- public void testSetColor() throws IOException {
+ void testSetColor() throws IOException {
try(Workbook wb = new XSSFWorkbook()) {
Sheet sheet = wb.createSheet();
Row row = sheet.createRow(0);
@@ -1011,7 +1011,7 @@ public class TestXSSFCellStyle {
}
@Test
- public void test58084() throws IOException {
+ void test58084() throws IOException {
Workbook reference = XSSFTestDataSamples.openSampleWorkbook("template.xlsx");
Workbook target = new XSSFWorkbook();
copyStyles(reference, target);
@@ -1041,7 +1041,7 @@ public class TestXSSFCellStyle {
}
@Test
- public void test58043() {
+ void test58043() {
assertEquals(0, cellStyle.getRotation());
cellStyle.setRotation((short)89);
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFChart.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFChart.java?rev=1885283&r1=1885282&r2=1885283&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFChart.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFChart.java Sat Jan 9 00:46:52 2021
@@ -28,7 +28,7 @@ import org.junit.jupiter.api.Test;
public final class TestXSSFChart {
@Test
- public void testGetAccessors() throws IOException {
+ void testGetAccessors() throws IOException {
try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("WithThreeCharts.xlsx")) {
XSSFSheet s1 = wb.getSheetAt(0);
XSSFSheet s2 = wb.getSheetAt(1);
@@ -43,7 +43,7 @@ public final class TestXSSFChart {
}
@Test
- public void testGetCharts() throws Exception {
+ void testGetCharts() throws Exception {
try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("WithThreeCharts.xlsx")) {
XSSFSheet s1 = wb.getSheetAt(0);
XSSFSheet s2 = wb.getSheetAt(1);
@@ -72,7 +72,7 @@ public final class TestXSSFChart {
}
@Test
- public void testAddChartsToNewWorkbook() throws Exception {
+ void testAddChartsToNewWorkbook() throws Exception {
try (XSSFWorkbook wb = new XSSFWorkbook()) {
XSSFSheet s1 = wb.createSheet();
XSSFDrawing d1 = s1.createDrawingPatriarch();
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFChartSheet.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFChartSheet.java?rev=1885283&r1=1885282&r2=1885283&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFChartSheet.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFChartSheet.java Sat Jan 9 00:46:52 2021
@@ -29,7 +29,7 @@ import static org.junit.jupiter.api.Asse
public final class TestXSSFChartSheet {
@Test
- public void testXSSFFactory() throws IOException {
+ void testXSSFFactory() throws IOException {
try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("chart_sheet.xlsx")) {
assertEquals(4, wb.getNumberOfSheets());
@@ -44,7 +44,7 @@ public final class TestXSSFChartSheet {
}
@Test
- public void testGetAccessors() throws IOException {
+ void testGetAccessors() throws IOException {
try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("chart_sheet.xlsx")) {
XSSFChartSheet sheet = (XSSFChartSheet) wb.getSheetAt(2);
@@ -69,7 +69,7 @@ public final class TestXSSFChartSheet {
}
@Test
- public void testGetCharts() throws Exception {
+ void testGetCharts() throws Exception {
try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("chart_sheet.xlsx")) {
XSSFSheet ns = wb.getSheetAt(0);
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFColGrouping.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFColGrouping.java?rev=1885283&r1=1885282&r2=1885283&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFColGrouping.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFColGrouping.java Sat Jan 9 00:46:52 2021
@@ -51,7 +51,7 @@ public class TestXSSFColGrouping {
* POI-52186
*/
@Test
- public void testNoColsWithoutWidthWhenGrouping() throws IOException {
+ void testNoColsWithoutWidthWhenGrouping() throws IOException {
try (XSSFWorkbook wb1 = new XSSFWorkbook()) {
XSSFSheet sheet = wb1.createSheet("test");
@@ -79,7 +79,7 @@ public class TestXSSFColGrouping {
* POI-52186
*/
@Test
- public void testNoColsWithoutWidthWhenGroupingAndCollapsing() throws IOException {
+ void testNoColsWithoutWidthWhenGroupingAndCollapsing() throws IOException {
try (XSSFWorkbook wb1 = new XSSFWorkbook()) {
XSSFSheet sheet = wb1.createSheet("test");
@@ -111,7 +111,7 @@ public class TestXSSFColGrouping {
* Test the cols element is correct in case of NumericRanges.OVERLAPS_2_WRAPS
*/
@Test
- public void testMergingOverlappingCols_OVERLAPS_2_WRAPS() throws IOException {
+ void testMergingOverlappingCols_OVERLAPS_2_WRAPS() throws IOException {
try (XSSFWorkbook wb1 = new XSSFWorkbook()) {
XSSFSheet sheet = wb1.createSheet("test");
@@ -159,7 +159,7 @@ public class TestXSSFColGrouping {
* Test the cols element is correct in case of NumericRanges.OVERLAPS_1_WRAPS
*/
@Test
- public void testMergingOverlappingCols_OVERLAPS_1_WRAPS() throws IOException {
+ void testMergingOverlappingCols_OVERLAPS_1_WRAPS() throws IOException {
try (XSSFWorkbook wb1 = new XSSFWorkbook()) {
XSSFSheet sheet = wb1.createSheet("test");
@@ -207,7 +207,7 @@ public class TestXSSFColGrouping {
* Test the cols element is correct in case of NumericRanges.OVERLAPS_1_MINOR
*/
@Test
- public void testMergingOverlappingCols_OVERLAPS_1_MINOR() throws IOException {
+ void testMergingOverlappingCols_OVERLAPS_1_MINOR() throws IOException {
try (XSSFWorkbook wb1 = new XSSFWorkbook()) {
XSSFSheet sheet = wb1.createSheet("test");
@@ -256,7 +256,7 @@ public class TestXSSFColGrouping {
* Test the cols element is correct in case of NumericRanges.OVERLAPS_2_MINOR
*/
@Test
- public void testMergingOverlappingCols_OVERLAPS_2_MINOR() throws IOException {
+ void testMergingOverlappingCols_OVERLAPS_2_MINOR() throws IOException {
try (XSSFWorkbook wb1 = new XSSFWorkbook()) {
XSSFSheet sheet = wb1.createSheet("test");
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFColor.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFColor.java?rev=1885283&r1=1885282&r2=1885283&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFColor.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFColor.java Sat Jan 9 00:46:52 2021
@@ -32,7 +32,7 @@ import org.openxmlformats.schemas.spread
public final class TestXSSFColor {
@Test
- public void testIndexedColour() throws Exception {
+ void testIndexedColour() throws Exception {
try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("48779.xlsx")) {
// Check the CTColor is as expected
XSSFColor indexed = wb.getCellStyleAt(1).getFillBackgroundXSSFColor();
@@ -77,7 +77,7 @@ public final class TestXSSFColor {
}
@Test
- public void testRGBColour() throws IOException {
+ void testRGBColour() throws IOException {
try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("50299.xlsx")) {
// Check the CTColor is as expected
@@ -134,7 +134,7 @@ public final class TestXSSFColor {
}
@Test
- public void testARGBColour() throws IOException {
+ void testARGBColour() throws IOException {
try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("48779.xlsx")) {
// Check the CTColor is as expected
@@ -183,7 +183,7 @@ public final class TestXSSFColor {
}
@Test
- public void testCustomIndexedColour() throws Exception {
+ void testCustomIndexedColour() throws Exception {
try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("customIndexedColors.xlsx")) {
XSSFCell cell = wb.getSheetAt(1).getRow(0).getCell(0);
XSSFColor color = cell.getCellStyle().getFillForegroundColorColor();
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFComment.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFComment.java?rev=1885283&r1=1885282&r2=1885283&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFComment.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFComment.java Sat Jan 9 00:46:52 2021
@@ -195,7 +195,7 @@ public final class TestXSSFComment exten
}
@Test
- public void testBug58175() throws IOException {
+ void testBug58175() throws IOException {
try (SXSSFWorkbook wb = new SXSSFWorkbook()) {
Sheet sheet = wb.createSheet();
@@ -264,7 +264,7 @@ public final class TestXSSFComment exten
@Disabled("Used for manual testing with opening the resulting Workbook in Excel")
@Test
- public void testBug58175a() throws IOException {
+ void testBug58175a() throws IOException {
try (Workbook wb = new SXSSFWorkbook()) {
Sheet sheet = wb.createSheet();
@@ -305,7 +305,7 @@ public final class TestXSSFComment exten
}
@Test
- public void testBug55814() throws IOException {
+ void testBug55814() throws IOException {
try (Workbook wb = XSSFTestDataSamples.openSampleWorkbook("55814.xlsx")) {
int oldsheetIndex = wb.getSheetIndex("example");
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFConditionalFormatting.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFConditionalFormatting.java?rev=1885283&r1=1885282&r2=1885283&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFConditionalFormatting.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFConditionalFormatting.java Sat Jan 9 00:46:52 2021
@@ -58,19 +58,19 @@ public class TestXSSFConditionalFormatti
}
@Test
- public void testRead() throws IOException {
+ void testRead() throws IOException {
testRead("WithConditionalFormatting.xlsx");
}
@Test
- public void testReadOffice2007() throws IOException {
+ void testReadOffice2007() throws IOException {
testReadOffice2007("NewStyleConditionalFormattings.xlsx");
}
private final static java.awt.Color PEAK_ORANGE = new java.awt.Color(255, 239, 221);
@Test
- public void testFontFormattingColor() {
+ void testFontFormattingColor() {
XSSFWorkbook wb = XSSFITestDataProvider.instance.createWorkbook();
final Sheet sheet = wb.createSheet();
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFDataFormat.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFDataFormat.java?rev=1885283&r1=1885282&r2=1885283&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFDataFormat.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFDataFormat.java Sat Jan 9 00:46:52 2021
@@ -48,7 +48,7 @@ public final class TestXSSFDataFormat ex
* [Bug 58778] Built-in number formats can be overridden with XSSFDataFormat.putFormat(int id, String fmt)
*/
@Test
- public void test58778() throws IOException {
+ void test58778() throws IOException {
try (XSSFWorkbook wb1 = new XSSFWorkbook()) {
Cell cell = wb1.createSheet("bug58778").createRow(0).createCell(0);
cell.setCellValue(5.25);
@@ -77,7 +77,7 @@ public final class TestXSSFDataFormat ex
}
@Test
- public void testConditionalFormattingEvaluation() throws IOException {
+ void testConditionalFormattingEvaluation() throws IOException {
try (Workbook wb = openSampleWorkbook("61060-conditional-number-formatting.xlsx")) {
final DataFormatter formatter = new DataFormatter();
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFDataValidation.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFDataValidation.java?rev=1885283&r1=1885282&r2=1885283&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFDataValidation.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFDataValidation.java Sat Jan 9 00:46:52 2021
@@ -49,7 +49,7 @@ public class TestXSSFDataValidation exte
}
@Test
- public void testAddValidations() throws Exception {
+ void testAddValidations() throws Exception {
XSSFWorkbook wb1 = XSSFTestDataSamples.openSampleWorkbook("DataValidations-49244.xlsx");
XSSFSheet sheet = wb1.getSheetAt(0);
List<XSSFDataValidation> dataValidations = sheet.getDataValidations();
@@ -255,7 +255,7 @@ public class TestXSSFDataValidation exte
}
@Test
- public void test53965() throws Exception {
+ void test53965() throws Exception {
try (XSSFWorkbook wb = new XSSFWorkbook()) {
XSSFSheet sheet = wb.createSheet();
List<XSSFDataValidation> lst = sheet.getDataValidations(); //<-- works
@@ -277,7 +277,7 @@ public class TestXSSFDataValidation exte
}
@Test
- public void testDefaultErrorStyle() throws IOException {
+ void testDefaultErrorStyle() throws IOException {
try (XSSFWorkbook wb = new XSSFWorkbook()) {
XSSFSheet sheet = wb.createSheet();
@@ -290,7 +290,7 @@ public class TestXSSFDataValidation exte
}
@Test
- public void testSetErrorStyles() throws IOException {
+ void testSetErrorStyles() throws IOException {
try (XSSFWorkbook wb = new XSSFWorkbook()) {
XSSFSheet sheet = wb.createSheet();
@@ -316,7 +316,7 @@ public class TestXSSFDataValidation exte
}
@Test
- public void testDefaultAllowBlank() throws IOException {
+ void testDefaultAllowBlank() throws IOException {
try (XSSFWorkbook wb = new XSSFWorkbook()) {
XSSFSheet sheet = wb.createSheet();
@@ -329,7 +329,7 @@ public class TestXSSFDataValidation exte
}
@Test
- public void testSetAllowBlankToFalse() throws IOException {
+ void testSetAllowBlankToFalse() throws IOException {
try (XSSFWorkbook wb = new XSSFWorkbook()) {
XSSFSheet sheet = wb.createSheet();
@@ -344,7 +344,7 @@ public class TestXSSFDataValidation exte
}
@Test
- public void testSetAllowBlankToTrue() throws IOException {
+ void testSetAllowBlankToTrue() throws IOException {
try (XSSFWorkbook wb = new XSSFWorkbook()) {
XSSFSheet sheet = wb.createSheet();
@@ -370,7 +370,7 @@ public class TestXSSFDataValidation exte
}
@Test
- public void testTableBasedValidationList() throws IOException {
+ void testTableBasedValidationList() throws IOException {
try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("dataValidationTableRange.xlsx")) {
XSSFFormulaEvaluator fEval = wb.getCreationHelper().createFormulaEvaluator();
DataValidationEvaluator dve = new DataValidationEvaluator(wb, fEval);
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFDialogSheet.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFDialogSheet.java?rev=1885283&r1=1885282&r2=1885283&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFDialogSheet.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFDialogSheet.java Sat Jan 9 00:46:52 2021
@@ -34,7 +34,7 @@ import org.openxmlformats.schemas.spread
public class TestXSSFDialogSheet {
@Test
- public void testCreateDialogSheet() throws IOException {
+ void testCreateDialogSheet() throws IOException {
XSSFWorkbook workbook = new XSSFWorkbook();
Sheet dialogsheet = workbook.createDialogsheet("Dialogsheet 1", CTDialogsheet.Factory.newInstance());
assertNotNull(dialogsheet);
@@ -42,7 +42,7 @@ public class TestXSSFDialogSheet {
}
@Test
- public void testGetDialog() throws IOException {
+ void testGetDialog() throws IOException {
XSSFWorkbook workbook = new XSSFWorkbook();
XSSFDialogsheet dialogsheet = workbook.createDialogsheet("Dialogsheet 1", null);
assertTrue(dialogsheet.getDialog());
@@ -50,7 +50,7 @@ public class TestXSSFDialogSheet {
}
@Test
- public void testAddRow() throws IOException {
+ void testAddRow() throws IOException {
XSSFWorkbook workbook = new XSSFWorkbook();
Sheet dialogsheet = workbook.createDialogsheet("Dialogsheet 1", CTDialogsheet.Factory.newInstance());
assertNotNull(dialogsheet);
@@ -60,7 +60,7 @@ public class TestXSSFDialogSheet {
}
@Test
- public void testGetSetAutoBreaks() throws IOException {
+ void testGetSetAutoBreaks() throws IOException {
XSSFWorkbook workbook = new XSSFWorkbook();
XSSFDialogsheet sheet = workbook.createDialogsheet("Dialogsheet 1", null);
assertTrue(sheet.getAutobreaks());
@@ -70,7 +70,7 @@ public class TestXSSFDialogSheet {
}
@Test
- public void testIsSetFitToPage() throws IOException {
+ void testIsSetFitToPage() throws IOException {
XSSFWorkbook workbook = new XSSFWorkbook();
XSSFDialogsheet sheet = workbook.createDialogsheet("Dialogsheet 1", null);
assertFalse(sheet.getFitToPage());
@@ -83,7 +83,7 @@ public class TestXSSFDialogSheet {
@Test
- public void testGetFooter() throws IOException {
+ void testGetFooter() throws IOException {
XSSFWorkbook workbook = new XSSFWorkbook();
XSSFDialogsheet sheet = workbook.createDialogsheet("Dialogsheet 1", null);
assertNotNull(sheet.getFooter());
@@ -93,7 +93,7 @@ public class TestXSSFDialogSheet {
}
@Test
- public void testGetAllHeadersFooters() throws IOException {
+ void testGetAllHeadersFooters() throws IOException {
XSSFWorkbook workbook = new XSSFWorkbook();
XSSFDialogsheet sheet = workbook.createDialogsheet("Dialogsheet 1", null);
assertNotNull(sheet);
@@ -131,7 +131,7 @@ public class TestXSSFDialogSheet {
}
@Test
- public void testGetSetHorizontallyCentered() throws IOException {
+ void testGetSetHorizontallyCentered() throws IOException {
XSSFWorkbook workbook = new XSSFWorkbook();
XSSFDialogsheet sheet = workbook.createDialogsheet("Dialogsheet 1", null);
assertFalse(sheet.getHorizontallyCenter());
@@ -143,7 +143,7 @@ public class TestXSSFDialogSheet {
}
@Test
- public void testGetSetVerticallyCentered() throws IOException {
+ void testGetSetVerticallyCentered() throws IOException {
XSSFWorkbook workbook = new XSSFWorkbook();
XSSFDialogsheet sheet = workbook.createDialogsheet("Dialogsheet 1", null);
assertFalse(sheet.getVerticallyCenter());
@@ -155,7 +155,7 @@ public class TestXSSFDialogSheet {
}
@Test
- public void testIsSetPrintGridlines() throws IOException {
+ void testIsSetPrintGridlines() throws IOException {
XSSFWorkbook workbook = new XSSFWorkbook();
XSSFDialogsheet sheet = workbook.createDialogsheet("Dialogsheet 1", null);
assertFalse(sheet.isPrintGridlines());
@@ -165,7 +165,7 @@ public class TestXSSFDialogSheet {
}
@Test
- public void testIsSetDisplayFormulas() throws IOException {
+ void testIsSetDisplayFormulas() throws IOException {
XSSFWorkbook workbook = new XSSFWorkbook();
XSSFDialogsheet sheet = workbook.createDialogsheet("Dialogsheet 1", null);
assertFalse(sheet.isDisplayFormulas());
@@ -175,7 +175,7 @@ public class TestXSSFDialogSheet {
}
@Test
- public void testIsSetDisplayGridLines() throws IOException {
+ void testIsSetDisplayGridLines() throws IOException {
XSSFWorkbook workbook = new XSSFWorkbook();
XSSFDialogsheet sheet = workbook.createDialogsheet("Dialogsheet 1", null);
assertTrue(sheet.isDisplayGridlines());
@@ -185,7 +185,7 @@ public class TestXSSFDialogSheet {
}
@Test
- public void testIsSetDisplayRowColHeadings() throws IOException {
+ void testIsSetDisplayRowColHeadings() throws IOException {
XSSFWorkbook workbook = new XSSFWorkbook();
XSSFDialogsheet sheet = workbook.createDialogsheet("Dialogsheet 1", null);
assertTrue(sheet.isDisplayRowColHeadings());
@@ -195,7 +195,7 @@ public class TestXSSFDialogSheet {
}
@Test
- public void testGetScenarioProtect() throws IOException {
+ void testGetScenarioProtect() throws IOException {
XSSFWorkbook workbook = new XSSFWorkbook();
XSSFDialogsheet sheet = workbook.createDialogsheet("Dialogsheet 1", null);
assertFalse(sheet.getScenarioProtect());
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFDrawing.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFDrawing.java?rev=1885283&r1=1885282&r2=1885283&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFDrawing.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFDrawing.java Sat Jan 9 00:46:52 2021
@@ -50,7 +50,7 @@ public class TestXSSFDrawing {
}
@Test
- public void testRead() throws IOException {
+ void testRead() throws IOException {
XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("WithDrawing.xlsx");
XSSFSheet sheet = wb.getSheetAt(0);
//the sheet has one relationship and it is XSSFDrawing
@@ -85,7 +85,7 @@ public class TestXSSFDrawing {
}
@Test
- public void testNew() throws IOException {
+ void testNew() throws IOException {
XSSFWorkbook wb1 = new XSSFWorkbook();
XSSFSheet sheet = wb1.createSheet();
//multiple calls of createDrawingPatriarch should return the same instance of XSSFDrawing
@@ -163,7 +163,7 @@ public class TestXSSFDrawing {
}
@Test
- public void testMultipleDrawings() throws IOException{
+ void testMultipleDrawings() throws IOException{
XSSFWorkbook wb = new XSSFWorkbook();
for (int i = 0; i < 3; i++) {
XSSFSheet sheet = wb.createSheet();
@@ -178,7 +178,7 @@ public class TestXSSFDrawing {
}
@Test
- public void testClone() throws Exception{
+ void testClone() throws Exception{
XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("WithDrawing.xlsx");
XSSFSheet sheet1 = wb.getSheetAt(0);
@@ -220,7 +220,7 @@ public class TestXSSFDrawing {
* See Bugzilla 52219.
*/
@Test
- public void testRichText() throws IOException {
+ void testRichText() throws IOException {
XSSFWorkbook wb = new XSSFWorkbook();
XSSFSheet sheet = wb.createSheet();
XSSFDrawing drawing = sheet.createDrawingPatriarch();
@@ -256,7 +256,7 @@ public class TestXSSFDrawing {
* test that anchor is not null when reading shapes from existing drawings
*/
@Test
- public void testReadAnchors() throws IOException {
+ void testReadAnchors() throws IOException {
XSSFWorkbook wb1 = new XSSFWorkbook();
XSSFSheet sheet = wb1.createSheet();
XSSFDrawing drawing = sheet.createDrawingPatriarch();
@@ -294,7 +294,7 @@ public class TestXSSFDrawing {
* See Bugzilla 54969.
*/
@Test
- public void testRichTextFontAndColor() throws IOException {
+ void testRichTextFontAndColor() throws IOException {
XSSFWorkbook wb = new XSSFWorkbook();
XSSFSheet sheet = wb.createSheet();
XSSFDrawing drawing = sheet.createDrawingPatriarch();
@@ -325,7 +325,7 @@ public class TestXSSFDrawing {
* Test setText single paragraph to ensure backwards compatibility
*/
@Test
- public void testSetTextSingleParagraph() throws IOException {
+ void testSetTextSingleParagraph() throws IOException {
XSSFWorkbook wb = new XSSFWorkbook();
XSSFSheet sheet = wb.createSheet();
XSSFDrawing drawing = sheet.createDrawingPatriarch();
@@ -361,7 +361,7 @@ public class TestXSSFDrawing {
* Test addNewTextParagraph
*/
@Test
- public void testAddNewTextParagraph() throws IOException {
+ void testAddNewTextParagraph() throws IOException {
XSSFWorkbook wb = new XSSFWorkbook();
XSSFSheet sheet = wb.createSheet();
XSSFDrawing drawing = sheet.createDrawingPatriarch();
@@ -386,7 +386,7 @@ public class TestXSSFDrawing {
* Test addNewTextParagraph using RichTextString
*/
@Test
- public void testAddNewTextParagraphWithRTS() throws IOException {
+ void testAddNewTextParagraphWithRTS() throws IOException {
XSSFWorkbook wb1 = new XSSFWorkbook();
XSSFSheet sheet = wb1.createSheet();
XSSFDrawing drawing = sheet.createDrawingPatriarch();
@@ -459,7 +459,7 @@ public class TestXSSFDrawing {
* Test add multiple paragraphs and retrieve text
*/
@Test
- public void testAddMultipleParagraphs() throws IOException {
+ void testAddMultipleParagraphs() throws IOException {
XSSFWorkbook wb = new XSSFWorkbook();
XSSFSheet sheet = wb.createSheet();
XSSFDrawing drawing = sheet.createDrawingPatriarch();
@@ -487,7 +487,7 @@ public class TestXSSFDrawing {
* Test setting the text, then adding multiple paragraphs and retrieve text
*/
@Test
- public void testSetAddMultipleParagraphs() throws IOException {
+ void testSetAddMultipleParagraphs() throws IOException {
XSSFWorkbook wb = new XSSFWorkbook();
XSSFSheet sheet = wb.createSheet();
XSSFDrawing drawing = sheet.createDrawingPatriarch();
@@ -514,7 +514,7 @@ public class TestXSSFDrawing {
* Test reading text from a textbox in an existing file
*/
@Test
- public void testReadTextBox() throws IOException {
+ void testReadTextBox() throws IOException {
XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("WithDrawing.xlsx");
XSSFSheet sheet = wb.getSheetAt(0);
//the sheet has one relationship and it is XSSFDrawing
@@ -549,7 +549,7 @@ public class TestXSSFDrawing {
* Test reading multiple paragraphs from a textbox in an existing file
*/
@Test
- public void testReadTextBoxParagraphs() throws IOException {
+ void testReadTextBoxParagraphs() throws IOException {
XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("WithTextBox.xlsx");
XSSFSheet sheet = wb.getSheetAt(0);
//the sheet has one relationship and it is XSSFDrawing
@@ -611,7 +611,7 @@ public class TestXSSFDrawing {
* Test adding and reading back paragraphs as bullet points
*/
@Test
- public void testAddBulletParagraphs() throws IOException {
+ void testAddBulletParagraphs() throws IOException {
XSSFWorkbook wb1 = new XSSFWorkbook();
XSSFSheet sheet = wb1.createSheet();
@@ -724,7 +724,7 @@ public class TestXSSFDrawing {
* Test reading bullet numbering from a textbox in an existing file
*/
@Test
- public void testReadTextBox2() throws IOException {
+ void testReadTextBox2() throws IOException {
XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("WithTextBox2.xlsx");
XSSFSheet sheet = wb.getSheetAt(0);
XSSFDrawing drawing = sheet.createDrawingPatriarch();
@@ -748,7 +748,7 @@ public class TestXSSFDrawing {
}
@Test
- public void testXSSFSimpleShapeCausesNPE56514() throws IOException {
+ void testXSSFSimpleShapeCausesNPE56514() throws IOException {
XSSFWorkbook wb1 = XSSFTestDataSamples.openSampleWorkbook("56514.xlsx");
XSSFSheet sheet = wb1.getSheetAt(0);
XSSFDrawing drawing = sheet.createDrawingPatriarch();
@@ -766,7 +766,7 @@ public class TestXSSFDrawing {
}
@Test
- public void testXSSFSAddPicture() throws Exception {
+ void testXSSFSAddPicture() throws Exception {
XSSFWorkbook wb1 = new XSSFWorkbook();
XSSFSheet sheet = wb1.createSheet();
//multiple calls of createDrawingPatriarch should return the same instance of XSSFDrawing
@@ -831,7 +831,7 @@ public class TestXSSFDrawing {
}
@Test
- public void testBug56835CellComment() throws IOException {
+ void testBug56835CellComment() throws IOException {
try (XSSFWorkbook wb = new XSSFWorkbook()) {
XSSFSheet sheet = wb.createSheet();
XSSFDrawing drawing = sheet.createDrawingPatriarch();
@@ -847,7 +847,7 @@ public class TestXSSFDrawing {
}
@Test
- public void testGroupShape() throws Exception {
+ void testGroupShape() throws Exception {
XSSFWorkbook wb1 = new XSSFWorkbook();
XSSFSheet sheet = wb1.createSheet();
XSSFDrawing drawing = sheet.createDrawingPatriarch();
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFEvaluationSheet.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFEvaluationSheet.java?rev=1885283&r1=1885282&r2=1885283&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFEvaluationSheet.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFEvaluationSheet.java Sat Jan 9 00:46:52 2021
@@ -31,7 +31,7 @@ import org.junit.jupiter.api.Test;
public class TestXSSFEvaluationSheet extends BaseTestXEvaluationSheet {
@Test
- public void test() throws Exception {
+ void test() throws Exception {
XSSFWorkbook wb = new XSSFWorkbook();
XSSFSheet sheet = wb.createSheet("test");
XSSFRow row = sheet.createRow(0);
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFEvenFooter.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFEvenFooter.java?rev=1885283&r1=1885282&r2=1885283&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFEvenFooter.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFEvenFooter.java Sat Jan 9 00:46:52 2021
@@ -40,7 +40,7 @@ public class TestXSSFEvenFooter {
}
@Test
- public void testSetGetText() {
+ void testSetGetText() {
XSSFEvenFooter footer = (XSSFEvenFooter) sheet.getEvenFooter();
assertNotNull(footer);
assertNull(footer.getText());
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFEvenHeader.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFEvenHeader.java?rev=1885283&r1=1885282&r2=1885283&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFEvenHeader.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFEvenHeader.java Sat Jan 9 00:46:52 2021
@@ -40,7 +40,7 @@ public class TestXSSFEvenHeader {
}
@Test
- public void testSetGetText() {
+ void testSetGetText() {
XSSFEvenHeader header = (XSSFEvenHeader) sheet.getEvenHeader();
assertNotNull(header);
assertNull(header.getText());
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFFirstFooter.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFFirstFooter.java?rev=1885283&r1=1885282&r2=1885283&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFFirstFooter.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFFirstFooter.java Sat Jan 9 00:46:52 2021
@@ -40,7 +40,7 @@ public class TestXSSFFirstFooter {
}
@Test
- public void testSetGetText() {
+ void testSetGetText() {
XSSFFirstFooter footer = (XSSFFirstFooter) sheet.getFirstFooter();
assertNotNull(footer);
assertNull(footer.getText());
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFFirstHeader.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFFirstHeader.java?rev=1885283&r1=1885282&r2=1885283&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFFirstHeader.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFFirstHeader.java Sat Jan 9 00:46:52 2021
@@ -40,7 +40,7 @@ public class TestXSSFFirstHeader {
}
@Test
- public void testSetGetText() {
+ void testSetGetText() {
XSSFFirstHeader header = (XSSFFirstHeader) sheet.getFirstHeader();
assertNotNull(header);
assertNull(header.getText());
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFFont.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFFont.java?rev=1885283&r1=1885282&r2=1885283&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFFont.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFFont.java Sat Jan 9 00:46:52 2021
@@ -63,13 +63,13 @@ public final class TestXSSFFont extends
}
@Test
- public void testConstructor() {
+ void testConstructor() {
XSSFFont xssfFont=new XSSFFont();
assertNotNull(xssfFont.getCTFont());
}
@Test
- public void testBold() {
+ void testBold() {
CTFont ctFont=CTFont.Factory.newInstance();
CTBooleanProperty bool=ctFont.addNewB();
bool.setVal(false);
@@ -85,7 +85,7 @@ public final class TestXSSFFont extends
@SuppressWarnings("deprecation")
@Test
- public void testCharSetWithDeprecatedFontCharset() throws IOException {
+ void testCharSetWithDeprecatedFontCharset() throws IOException {
CTFont ctFont=CTFont.Factory.newInstance();
CTIntProperty prop=ctFont.addNewCharset();
prop.setVal(org.apache.poi.ss.usermodel.FontCharset.ANSI.getValue());
@@ -130,7 +130,7 @@ public final class TestXSSFFont extends
}
@Test
- public void testCharSet() throws IOException {
+ void testCharSet() throws IOException {
CTFont ctFont=CTFont.Factory.newInstance();
CTIntProperty prop=ctFont.addNewCharset();
prop.setVal(FontCharset.ANSI.getNativeId());
@@ -174,7 +174,7 @@ public final class TestXSSFFont extends
}
@Test
- public void testFontName() {
+ void testFontName() {
CTFont ctFont=CTFont.Factory.newInstance();
CTFontName fname=ctFont.addNewName();
fname.setVal("Arial");
@@ -188,7 +188,7 @@ public final class TestXSSFFont extends
}
@Test
- public void testItalic() {
+ void testItalic() {
CTFont ctFont=CTFont.Factory.newInstance();
CTBooleanProperty bool=ctFont.addNewI();
bool.setVal(false);
@@ -204,7 +204,7 @@ public final class TestXSSFFont extends
}
@Test
- public void testStrikeout() {
+ void testStrikeout() {
CTFont ctFont=CTFont.Factory.newInstance();
CTBooleanProperty bool=ctFont.addNewStrike();
bool.setVal(false);
@@ -220,7 +220,7 @@ public final class TestXSSFFont extends
}
@Test
- public void testFontHeight() {
+ void testFontHeight() {
CTFont ctFont=CTFont.Factory.newInstance();
CTFontSize size=ctFont.addNewSz();
size.setVal(11);
@@ -234,7 +234,7 @@ public final class TestXSSFFont extends
}
@Test
- public void testFontHeightInPoint() {
+ void testFontHeightInPoint() {
CTFont ctFont=CTFont.Factory.newInstance();
CTFontSize size=ctFont.addNewSz();
size.setVal(14);
@@ -248,7 +248,7 @@ public final class TestXSSFFont extends
}
@Test
- public void testUnderline() {
+ void testUnderline() {
CTFont ctFont=CTFont.Factory.newInstance();
CTUnderlineProperty underlinePropr=ctFont.addNewU();
underlinePropr.setVal(STUnderlineValues.SINGLE);
@@ -267,7 +267,7 @@ public final class TestXSSFFont extends
}
@Test
- public void testColor() {
+ void testColor() {
CTFont ctFont=CTFont.Factory.newInstance();
CTColor color=ctFont.addNewColor();
color.setIndexed(XSSFFont.DEFAULT_FONT_COLOR);
@@ -281,7 +281,7 @@ public final class TestXSSFFont extends
}
@Test
- public void testRgbColor() {
+ void testRgbColor() {
CTFont ctFont=CTFont.Factory.newInstance();
CTColor color=ctFont.addNewColor();
@@ -307,7 +307,7 @@ public final class TestXSSFFont extends
}
@Test
- public void testThemeColor() {
+ void testThemeColor() {
CTFont ctFont=CTFont.Factory.newInstance();
CTColor color=ctFont.addNewColor();
color.setTheme(1);
@@ -321,7 +321,7 @@ public final class TestXSSFFont extends
}
@Test
- public void testFamily() {
+ void testFamily() {
CTFont ctFont=CTFont.Factory.newInstance();
CTFontFamily family=ctFont.addNewFamily();
family.setVal(FontFamily.MODERN.getValue());
@@ -332,7 +332,7 @@ public final class TestXSSFFont extends
}
@Test
- public void testScheme() {
+ void testScheme() {
CTFont ctFont=CTFont.Factory.newInstance();
CTFontScheme scheme=ctFont.addNewScheme();
scheme.setVal(STFontScheme.MAJOR);
@@ -346,7 +346,7 @@ public final class TestXSSFFont extends
}
@Test
- public void testTypeOffset() {
+ void testTypeOffset() {
CTFont ctFont=CTFont.Factory.newInstance();
CTVerticalAlignFontProperty valign=ctFont.addNewVertAlign();
valign.setVal(STVerticalAlignRun.BASELINE);
@@ -361,7 +361,7 @@ public final class TestXSSFFont extends
// store test from TestSheetUtil here as it uses XSSF
@Test
- public void testCanComputeWidthXSSF() throws IOException {
+ void testCanComputeWidthXSSF() throws IOException {
try (Workbook wb = new XSSFWorkbook()) {
// cannot check on result because on some machines we get back false here!
@@ -372,7 +372,7 @@ public final class TestXSSFFont extends
// store test from TestSheetUtil here as it uses XSSF
@Test
- public void testCanComputeWidthInvalidFont() {
+ void testCanComputeWidthInvalidFont() {
Font font = new XSSFFont(CTFont.Factory.newInstance());
font.setFontName("some non existing font name");
@@ -384,7 +384,7 @@ public final class TestXSSFFont extends
* Test that fonts get added properly
*/
@Test
- public void testFindFont() throws IOException {
+ void testFindFont() throws IOException {
try (XSSFWorkbook wb = new XSSFWorkbook()) {
assertEquals(1, wb.getNumberOfFonts());
@@ -483,7 +483,7 @@ public final class TestXSSFFont extends
}
@Test
- public void testEquals() {
+ void testEquals() {
XSSFFont font = new XSSFFont();
XSSFFont equ = new XSSFFont();
XSSFFont notequ = new XSSFFont();
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFFormulaEvaluation.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFFormulaEvaluation.java?rev=1885283&r1=1885282&r2=1885283&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFFormulaEvaluation.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFFormulaEvaluation.java Sat Jan 9 00:46:52 2021
@@ -51,7 +51,7 @@ public final class TestXSSFFormulaEvalua
}
@Test
- public void testSharedFormulas_evaluateInCell() throws IOException {
+ void testSharedFormulas_evaluateInCell() throws IOException {
try (Workbook wb = _testDataProvider.openSampleWorkbook("49872.xlsx")) {
FormulaEvaluator evaluator = wb.getCreationHelper().createFormulaEvaluator();
Sheet sheet = wb.getSheetAt(0);
@@ -81,7 +81,7 @@ public final class TestXSSFFormulaEvalua
* Evaluation of cell references with column indexes greater than 255. See bugzilla 50096
*/
@Test
- public void testEvaluateColumnGreaterThan255() throws IOException {
+ void testEvaluateColumnGreaterThan255() throws IOException {
try (Workbook wb = _testDataProvider.openSampleWorkbook("50096.xlsx")) {
FormulaEvaluator evaluator = wb.getCreationHelper().createFormulaEvaluator();
@@ -115,7 +115,7 @@ public final class TestXSSFFormulaEvalua
* workbooks, both HSSF and XSSF ones
*/
@Test
- public void testReferencesToOtherWorkbooks() throws Exception {
+ void testReferencesToOtherWorkbooks() throws Exception {
try (Workbook wb = _testDataProvider.openSampleWorkbook("ref2-56737.xlsx")) {
FormulaEvaluator evaluator = wb.getCreationHelper().createFormulaEvaluator();
Sheet s = wb.getSheetAt(0);
@@ -232,7 +232,7 @@ public final class TestXSSFFormulaEvalua
* See bug #56752
*/
// @Disabled
-// public void testCachedReferencesToOtherWorkbooks() {
+// void testCachedReferencesToOtherWorkbooks() {
// }
/**
@@ -244,7 +244,7 @@ public final class TestXSSFFormulaEvalua
*/
@ParameterizedTest
@ValueSource(strings = {"55906-MultiSheetRefs.xls","55906-MultiSheetRefs.xlsx"})
- public void testMultiSheetReferencesHSSFandXSSF(String sampleFileName) throws Exception {
+ void testMultiSheetReferencesHSSFandXSSF(String sampleFileName) throws Exception {
Function<String, Workbook> fun = sampleFileName.endsWith("x")
? XSSFTestDataSamples::openSampleWorkbook : HSSFTestDataSamples::openSampleWorkbook;
@@ -309,7 +309,7 @@ public final class TestXSSFFormulaEvalua
*/
@ParameterizedTest
@ValueSource(strings = {"55906-MultiSheetRefs.xls","55906-MultiSheetRefs.xlsx"})
- public void testMultiSheetAreasHSSFandXSSF(String sampleFileName) throws Exception {
+ void testMultiSheetAreasHSSFandXSSF(String sampleFileName) throws Exception {
Function<String, Workbook> fun = sampleFileName.endsWith("x")
? XSSFTestDataSamples::openSampleWorkbook : HSSFTestDataSamples::openSampleWorkbook;
@@ -364,7 +364,7 @@ public final class TestXSSFFormulaEvalua
}
@Test
- public void test59736() throws IOException {
+ void test59736() throws IOException {
try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("59736.xlsx")) {
FormulaEvaluator evaluator = wb.getCreationHelper().createFormulaEvaluator();
Cell cell = wb.getSheetAt(0).getRow(0).getCell(0);
@@ -392,7 +392,7 @@ public final class TestXSSFFormulaEvalua
}
@Test
- public void testBug61468() throws IOException {
+ void testBug61468() throws IOException {
try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("simple-monthly-budget.xlsx")) {
FormulaEvaluator evaluator = wb.getCreationHelper().createFormulaEvaluator();
Cell cell = wb.getSheetAt(0).getRow(8).getCell(4);
@@ -405,7 +405,7 @@ public final class TestXSSFFormulaEvalua
@Test
@Disabled("this is from an open bug/discussion over handling localization for number formats")
- public void testBug61495() throws IOException {
+ void testBug61495() throws IOException {
try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("61495-test.xlsm")) {
FormulaEvaluator evaluator = wb.getCreationHelper().createFormulaEvaluator();
Cell cell = wb.getSheetAt(0).getRow(0).getCell(1);
@@ -425,7 +425,7 @@ public final class TestXSSFFormulaEvalua
* see bug 62834, handle when a shared formula range doesn't contain only formula cells
*/
@Test
- public void testBug62834() throws IOException {
+ void testBug62834() throws IOException {
try (Workbook wb = XSSFTestDataSamples.openSampleWorkbook("62834.xlsx")) {
FormulaEvaluator evaluator = wb.getCreationHelper().createFormulaEvaluator();
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org