Bug 47372 - TestHSSFDataFormatter broken on non-US locale
Summary: TestHSSFDataFormatter broken on non-US locale
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: HSSF (show other bugs)
Version: 3.5-dev
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-16 04:10 UTC by Maxim Valyanskiy
Modified: 2009-06-16 05:37 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maxim Valyanskiy 2009-06-16 04:10:25 UTC
Build failed with ru_RU.utf8 locale:

1) testGetFormattedCellValueHSSFCell() - hardcoded month name
unit.framework.AssertionFailedError
	at org.apache.poi.hssf.usermodel.TestHSSFDataFormatter.testGetFormattedCellValueHSSFCell(TestHSSFDataFormatter.java:184)

2) testGetFormattedCellValueHSSFCellHSSFFormulaEvaluator()
junit.framework.ComparisonFailure: 
Expected :24.50%
Actual   :24,50%
	at org.apache.poi.hssf.usermodel.TestHSSFDataFormatter.testGetFormattedCellValueHSSFCellHSSFFormulaEvaluator(TestHSSFDataFormatter.java:251)


2) testGetFormattedCellValueHSSFCell()
junit.framework.ComparisonFailure: 
Expected :1234567890.12345
Actual   :1234567890,12345
	at org.apache.poi.hssf.usermodel.TestHSSFDataFormatter.testGetFormattedCellValueHSSFCell(TestHSSFDataFormatter.java:208)
Comment 1 Yegor Kozlov 2009-06-16 05:37:55 UTC
Fixed in r785176
I changed build.xml to use the en_US locale as some tests, like TestHSSFDataFormatter, assert locale-sensitive data. 

Regards,
Yegor