aboutsummaryrefslogtreecommitdiffstats
path: root/poi-ooxml/src/test/java
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2023-06-27 19:33:13 +0000
committerPJ Fanning <fanningpj@apache.org>2023-06-27 19:33:13 +0000
commitb90935055dbbaeaac6b3f84df228d354a6fc55a8 (patch)
tree0a7bf7c2f812515fd9bf7adb144a641b2148968a /poi-ooxml/src/test/java
parent99634d6af6559d280c2a8f61aa9f8230281defe6 (diff)
downloadpoi-b90935055dbbaeaac6b3f84df228d354a6fc55a8.tar.gz
poi-b90935055dbbaeaac6b3f84df228d354a6fc55a8.zip
apply some spelling fixes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1910639 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi-ooxml/src/test/java')
-rw-r--r--poi-ooxml/src/test/java/org/apache/poi/xddf/usermodel/chart/TestXDDFChartRemoveSeries.java2
-rw-r--r--poi-ooxml/src/test/java/org/apache/poi/xslf/usermodel/TestXSLFAutoShape.java2
-rw-r--r--poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/BaseTestXSSFPivotTable.java46
-rw-r--r--poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFBugs.java2
-rw-r--r--poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFCell.java8
-rw-r--r--poi-ooxml/src/test/java/org/apache/poi/xwpf/usermodel/TestXWPFHeader.java2
6 files changed, 31 insertions, 31 deletions
diff --git a/poi-ooxml/src/test/java/org/apache/poi/xddf/usermodel/chart/TestXDDFChartRemoveSeries.java b/poi-ooxml/src/test/java/org/apache/poi/xddf/usermodel/chart/TestXDDFChartRemoveSeries.java
index 137d3901fa..8bea979e33 100644
--- a/poi-ooxml/src/test/java/org/apache/poi/xddf/usermodel/chart/TestXDDFChartRemoveSeries.java
+++ b/poi-ooxml/src/test/java/org/apache/poi/xddf/usermodel/chart/TestXDDFChartRemoveSeries.java
@@ -67,7 +67,7 @@ class TestXDDFChartRemoveSeries {
final XDDFValueAxis bottomAxis = chart.createValueAxis(AxisPosition.BOTTOM);
final XDDFValueAxis leftAxis = chart.createValueAxis(AxisPosition.LEFT);
- // Initialize data data sources
+ // Initialize data sources
final Double dX[] = new Double[5];
final Double dY1[] = new Double[5];
diff --git a/poi-ooxml/src/test/java/org/apache/poi/xslf/usermodel/TestXSLFAutoShape.java b/poi-ooxml/src/test/java/org/apache/poi/xslf/usermodel/TestXSLFAutoShape.java
index 330f6629e7..0c199cd2b0 100644
--- a/poi-ooxml/src/test/java/org/apache/poi/xslf/usermodel/TestXSLFAutoShape.java
+++ b/poi-ooxml/src/test/java/org/apache/poi/xslf/usermodel/TestXSLFAutoShape.java
@@ -69,7 +69,7 @@ class TestXSLFAutoShape {
shape.setRightInset(0.0);
assertEquals(0.0, shape.getRightInset(), 0);
- // unset to defauls
+ // unset to defaults
shape.setBottomInset(-1);
assertEquals(3.6, shape.getBottomInset(), 0);
shape.setTopInset(-1);
diff --git a/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/BaseTestXSSFPivotTable.java b/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/BaseTestXSSFPivotTable.java
index d989dca870..4766c8522f 100644
--- a/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/BaseTestXSSFPivotTable.java
+++ b/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/BaseTestXSSFPivotTable.java
@@ -71,10 +71,10 @@ public abstract class BaseTestXSSFPivotTable {
assertEquals(0, pivotTable.getRowLabelColumns().size());
pivotTable.addRowLabel(0);
- CTPivotTableDefinition defintion = pivotTable.getCTPivotTableDefinition();
+ CTPivotTableDefinition definition = pivotTable.getCTPivotTableDefinition();
- assertEquals(0, defintion.getRowFields().getFieldArray(0).getX());
- assertEquals(1, defintion.getRowFields().getCount());
+ assertEquals(0, definition.getRowFields().getFieldArray(0).getX());
+ assertEquals(1, definition.getRowFields().getCount());
assertEquals(1, pivotTable.getRowLabelColumns().size());
pivotTable.addRowLabel(1);
@@ -100,9 +100,9 @@ public abstract class BaseTestXSSFPivotTable {
int columnIndex = 0;
pivotTable.addColumnLabel(DataConsolidateFunction.SUM, columnIndex);
- CTPivotTableDefinition defintion = pivotTable.getCTPivotTableDefinition();
+ CTPivotTableDefinition definition = pivotTable.getCTPivotTableDefinition();
- assertNull(defintion.getColFields());
+ assertNull(definition.getColFields());
}
/**
@@ -117,9 +117,9 @@ public abstract class BaseTestXSSFPivotTable {
pivotTable.addColumnLabel(DataConsolidateFunction.SUM, columnOne);
pivotTable.addColumnLabel(DataConsolidateFunction.MAX, columnTwo);
pivotTable.addColumnLabel(DataConsolidateFunction.MIN, columnThree);
- CTPivotTableDefinition defintion = pivotTable.getCTPivotTableDefinition();
+ CTPivotTableDefinition definition = pivotTable.getCTPivotTableDefinition();
- assertEquals(3, defintion.getDataFields().getDataFieldList().size());
+ assertEquals(3, definition.getDataFields().getDataFieldList().size());
}
@@ -135,9 +135,9 @@ public abstract class BaseTestXSSFPivotTable {
pivotTable.addColumnLabel(DataConsolidateFunction.SUM, columnOne);
pivotTable.addColumnLabel(DataConsolidateFunction.SUM, columnTwo);
pivotTable.addColumnLabel(DataConsolidateFunction.SUM, columnThree);
- CTPivotTableDefinition defintion = pivotTable.getCTPivotTableDefinition();
+ CTPivotTableDefinition definition = pivotTable.getCTPivotTableDefinition();
- assertEquals(3, defintion.getDataFields().getDataFieldList().size());
+ assertEquals(3, definition.getDataFields().getDataFieldList().size());
}
/**
@@ -150,9 +150,9 @@ public abstract class BaseTestXSSFPivotTable {
pivotTable.addColumnLabel(DataConsolidateFunction.SUM, columnOne);
pivotTable.addColumnLabel(DataConsolidateFunction.SUM, columnTwo);
- CTPivotTableDefinition defintion = pivotTable.getCTPivotTableDefinition();
+ CTPivotTableDefinition definition = pivotTable.getCTPivotTableDefinition();
- assertEquals(defintion.getColFields().getFieldArray(0).getX(), -2);
+ assertEquals(definition.getColFields().getFieldArray(0).getX(), -2);
}
/**
@@ -162,11 +162,11 @@ public abstract class BaseTestXSSFPivotTable {
void testColumnLabelCreatesDataField() {
pivotTable.addColumnLabel(DataConsolidateFunction.SUM, 0);
- CTPivotTableDefinition defintion = pivotTable.getCTPivotTableDefinition();
+ CTPivotTableDefinition definition = pivotTable.getCTPivotTableDefinition();
- assertEquals(0, defintion.getDataFields().getDataFieldArray(0).getFld());
+ assertEquals(0, definition.getDataFields().getDataFieldArray(0).getFld());
assertSame(STDataConsolidateFunction.Enum.forInt(DataConsolidateFunction.SUM.getValue()),
- defintion.getDataFields().getDataFieldArray(0).getSubtotal());
+ definition.getDataFields().getDataFieldArray(0).getSubtotal());
}
/**
@@ -180,10 +180,10 @@ public abstract class BaseTestXSSFPivotTable {
pivotTable.addColumnLabel(DataConsolidateFunction.SUM, columnIndex, customName);
- CTPivotTableDefinition defintion = pivotTable.getCTPivotTableDefinition();
+ CTPivotTableDefinition definition = pivotTable.getCTPivotTableDefinition();
- assertEquals(defintion.getDataFields().getDataFieldArray(0).getFld(), columnIndex);
- assertEquals(defintion.getDataFields().getDataFieldArray(0).getName(), customName);
+ assertEquals(definition.getDataFields().getDataFieldArray(0).getFld(), columnIndex);
+ assertEquals(definition.getDataFields().getDataFieldArray(0).getName(), customName);
}
/**
@@ -197,10 +197,10 @@ public abstract class BaseTestXSSFPivotTable {
pivotTable.addColumnLabel(DataConsolidateFunction.SUM, columnIndex, null, format);
- CTPivotTableDefinition defintion = pivotTable.getCTPivotTableDefinition();
+ CTPivotTableDefinition definition = pivotTable.getCTPivotTableDefinition();
- assertEquals(defintion.getDataFields().getDataFieldArray(0).getFld(), columnIndex);
- assertEquals(defintion.getDataFields().getDataFieldArray(0).getNumFmtId(), wb.createDataFormat().getFormat(format));
+ assertEquals(definition.getDataFields().getDataFieldArray(0).getFld(), columnIndex);
+ assertEquals(definition.getDataFields().getDataFieldArray(0).getNumFmtId(), wb.createDataFormat().getFormat(format));
}
/**
@@ -292,10 +292,10 @@ public abstract class BaseTestXSSFPivotTable {
assertEquals(0, pivotTable.getColLabelColumns().size());
pivotTable.addColLabel(0);
- CTPivotTableDefinition defintion = pivotTable.getCTPivotTableDefinition();
+ CTPivotTableDefinition definition = pivotTable.getCTPivotTableDefinition();
- assertEquals(0, defintion.getColFields().getFieldArray(0).getX());
- assertEquals(1, defintion.getColFields().getCount());
+ assertEquals(0, definition.getColFields().getFieldArray(0).getX());
+ assertEquals(1, definition.getColFields().getCount());
assertEquals(1, pivotTable.getColLabelColumns().size());
pivotTable.addColLabel(1);
diff --git a/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFBugs.java b/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFBugs.java
index 7b735206d4..d30d4d3abc 100644
--- a/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFBugs.java
+++ b/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFBugs.java
@@ -3809,7 +3809,7 @@ public final class TestXSSFBugs extends BaseTestBugzillaIssues {
}
}
- // for the decrytped bytes
+ // for the decrypted bytes
UnsynchronizedByteArrayOutputStream bosDec = UnsynchronizedByteArrayOutputStream.builder().get();
/* decrypt excel by poi */
diff --git a/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFCell.java b/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFCell.java
index ec06fa81f2..742b29af49 100644
--- a/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFCell.java
+++ b/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFCell.java
@@ -320,8 +320,8 @@ public final class TestXSSFCell extends BaseTestXCell {
// Test idea: iterate over cells in the reference worksheet, they all have the R attribute set.
// For each cell from the reference sheet find the corresponding cell in the problematic file (with missing R)
// and assert that POI reads them equally:
- DataFormatter formater = new DataFormatter();
- for(Row r : sheetRef){
+ DataFormatter formatter = new DataFormatter();
+ for (Row r : sheetRef) {
XSSFRow rowRef = (XSSFRow)r;
XSSFRow row = sheet.getRow(rowRef.getRowNum());
@@ -338,8 +338,8 @@ public final class TestXSSFCell extends BaseTestXCell {
if(!cell.getCTCell().isSetR()){
assertTrue(cellRef.getCTCell().isSetR(), "R must e set in cellRef");
- String valRef = formater.formatCellValue(cellRef);
- String val = formater.formatCellValue(cell);
+ String valRef = formatter.formatCellValue(cellRef);
+ String val = formatter.formatCellValue(cell);
assertEquals(valRef, val);
}
diff --git a/poi-ooxml/src/test/java/org/apache/poi/xwpf/usermodel/TestXWPFHeader.java b/poi-ooxml/src/test/java/org/apache/poi/xwpf/usermodel/TestXWPFHeader.java
index 73d2eebe20..5ca2f5dc3e 100644
--- a/poi-ooxml/src/test/java/org/apache/poi/xwpf/usermodel/TestXWPFHeader.java
+++ b/poi-ooxml/src/test/java/org/apache/poi/xwpf/usermodel/TestXWPFHeader.java
@@ -127,7 +127,7 @@ final class TestXWPFHeader {
assertEquals(0, headerF.getParagraphs().size());
- // As an additional check, recover the defauls footer and
+ // As an additional check, recover the defaults footer and
// make sure that it contains two paragraphs of text and that
// both do hold what is expected.
footerD = policy.getDefaultFooter();