Bug 47372

Summary: TestHSSFDataFormatter broken on non-US locale
Product: POI Reporter: Maxim Valyanskiy <max.valjanski>
Component: HSSFAssignee: POI Developers List <dev>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 3.5-dev   
Target Milestone: ---   
Hardware: PC   
OS: Linux   

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