You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ce...@apache.org on 2025/04/21 08:51:09 UTC

svn commit: r1925189 - /poi/trunk/poi/src/test/java/org/apache/poi/ss/usermodel/TestExcelStyleDateFormatter.java

Author: centic
Date: Mon Apr 21 08:51:08 2025
New Revision: 1925189

URL: http://svn.apache.org/viewvc?rev=1925189&view=rev
Log:
Add more output to test to try to see why it fails now with JDK 23

Modified:
    poi/trunk/poi/src/test/java/org/apache/poi/ss/usermodel/TestExcelStyleDateFormatter.java

Modified: poi/trunk/poi/src/test/java/org/apache/poi/ss/usermodel/TestExcelStyleDateFormatter.java
URL: http://svn.apache.org/viewvc/poi/trunk/poi/src/test/java/org/apache/poi/ss/usermodel/TestExcelStyleDateFormatter.java?rev=1925189&r1=1925188&r2=1925189&view=diff
==============================================================================
--- poi/trunk/poi/src/test/java/org/apache/poi/ss/usermodel/TestExcelStyleDateFormatter.java (original)
+++ poi/trunk/poi/src/test/java/org/apache/poi/ss/usermodel/TestExcelStyleDateFormatter.java Mon Apr 21 08:51:08 2025
@@ -58,11 +58,12 @@ class TestExcelStyleDateFormatter {
 
         formatter.setDateFormatSymbols(DateFormatSymbols.getInstance(locale));
         String result = formatter.format(d, sb, fp).toString();
-        String msg = "Failed testDates for locale " + locale + ", provider: " + provider +
-                " and date " + d + ", having: " + result;
 
         int actIdx = localeIndex(locale);
 
+        String msg = "Failed testDates for locale " + locale + ", provider: " + provider +
+                " and date " + d + ", having actIdx: " + actIdx + " and result '" + result + "' (" + result.length() + ")";
+
         assertNotNull(result, msg);
         assertTrue(result.length() > actIdx, msg);
         assertEquals(expected.charAt(month), result.charAt(actIdx), msg);



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org