aboutsummaryrefslogtreecommitdiffstats
path: root/poi
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2025-02-14 21:25:55 +0000
committerPJ Fanning <fanningpj@apache.org>2025-02-14 21:25:55 +0000
commit7d87f1b5cd9640390323ec92950f56bd346b575d (patch)
treea5e0471f8bdbc8c00ad2b60ddefc48c3bf8b978c /poi
parentbd6fddbcc46d524e7d1a1aed9e3413fbad59793c (diff)
downloadpoi-7d87f1b5cd9640390323ec92950f56bd346b575d.tar.gz
poi-7d87f1b5cd9640390323ec92950f56bd346b575d.zip
fix problem test (SXXSF)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923819 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi')
-rw-r--r--poi/src/test/java/org/apache/poi/ss/usermodel/BaseTestCell.java12
1 files changed, 2 insertions, 10 deletions
diff --git a/poi/src/test/java/org/apache/poi/ss/usermodel/BaseTestCell.java b/poi/src/test/java/org/apache/poi/ss/usermodel/BaseTestCell.java
index 18c589b359..0130e9b4f6 100644
--- a/poi/src/test/java/org/apache/poi/ss/usermodel/BaseTestCell.java
+++ b/poi/src/test/java/org/apache/poi/ss/usermodel/BaseTestCell.java
@@ -340,10 +340,6 @@ public abstract class BaseTestCell {
}
}
- protected boolean enableDateTest() {
- return true;
- }
-
/**tests the toString() method of HSSFCell*/
@Test
void testToString() throws Exception {
@@ -377,9 +373,7 @@ public abstract class BaseTestCell {
assertEquals("", r.getCell(6).toString(), "Blank");
// toString on a date-formatted cell displays dates as dd-MMM-yyyy, which has locale problems with the month
String dateCell1 = r.getCell(7).toString();
- if (enableDateTest()) {
- assertEquals("2/2/10 0:00", dateCell1);
- }
+ assertEquals("2/2/10 0:00", dateCell1);
//Write out the file, read it in, and then check cell values
try (Workbook wb2 = _testDataProvider.writeOutAndReadBack(wb1)) {
@@ -392,9 +386,7 @@ public abstract class BaseTestCell {
assertEquals("A1+B1", r.getCell(5).toString(), "Formula");
assertEquals("", r.getCell(6).toString(), "Blank");
String dateCell2 = r.getCell(7).toString();
- if (enableDateTest()) {
- assertEquals(dateCell1, dateCell2, "Date");
- }
+ assertEquals(dateCell1, dateCell2, "Date");
}
}
}