Hi all,


Today I have run the test suite test.tomcat.41, but it fail on my computer:

[junit] junit.framework.AssertionFailedError: expected:<1,234> but was:<1Â 234>
[junit] at org.apache.struts.taglib.bean.TestWriteTag.formatAndTest(TestWriteTag.java:122)
[junit] at org.apache.struts.taglib.bean.TestWriteTag.endWriteTagNameFormat(TestWriteTag.java:153)


Checking the code, it appear that we compare a localized string returned by the server with a static string not localized ;-). This should work well when the server is US_en, but doesn't work with FR_fr, and other locales.
Note that the shown returned string (<1Â 234>) is not necessarily the real returned string, because the text file used to catch the output doesn't support well localization.


There is other comparisons of this kind in the TestWriteTag file, and maybe in other files. I have try to run ant with other locale parameters, with no success: Tomcat is always launched with the locale of my computer, which I can't change.
As a result, I can't run the test suites. Is there someone who have a simple solution, or should we change the TestWriteTag file (how?).


cedric



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to