Author: centic
Date: Sat Dec 14 10:24:29 2024
New Revision: 1922487
URL: http://svn.apache.org/viewvc?rev=1922487&view=rev
Log:
Print out current locale.provider for some test-failures
JDK 24 will break things here and thus we should get more
information about which provider is used when running some tests
Modified:
poi/trunk/poi/src/test/java/org/apache/poi/ss/util/Utils.java
Modified: poi/trunk/poi/src/test/java/org/apache/poi/ss/util/Utils.java
URL:
http://svn.apache.org/viewvc/poi/trunk/poi/src/test/java/org/apache/poi/ss/util/Utils.java?rev=1922487&r1=1922486&r2=1922487&view=diff
==============================================================================
--- poi/trunk/poi/src/test/java/org/apache/poi/ss/util/Utils.java (original)
+++ poi/trunk/poi/src/test/java/org/apache/poi/ss/util/Utils.java Sat Dec 14
10:24:29 2024
@@ -27,6 +27,8 @@ import java.util.Date;
import static org.junit.jupiter.api.Assertions.assertEquals;
public class Utils {
+ private static final String provider =
System.getProperty("java.locale.providers");
+
public static void addRow(Sheet sheet, int rownum, Object... values) {
Row row = sheet.createRow(rownum);
for (int i = 0; i < values.length; i++) {
@@ -60,7 +62,8 @@ public class Utils {
fe.notifyUpdateCell(cell);
CellValue result = fe.evaluate(cell);
assertEquals(CellType.STRING, result.getCellType());
- assertEquals(expectedResult, result.getStringValue());
+ assertEquals(expectedResult, result.getStringValue(),
+ "Failed with locale provider: " + provider);
}
public static void assertDouble(FormulaEvaluator fe, Cell cell, String
formulaText, double expectedResult) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]