diff options
author | Yegor Kozlov <yegor@apache.org> | 2009-06-16 12:31:56 +0000 |
---|---|---|
committer | Yegor Kozlov <yegor@apache.org> | 2009-06-16 12:31:56 +0000 |
commit | a275338291635177d92945705f9add7f85031c46 (patch) | |
tree | 9e9d20d6ac32053e04c6ab033f2584e4e1f546c9 | |
parent | 21b332dc4508c96d494964c0f01ac2dc7b5891f2 (diff) | |
download | poi-a275338291635177d92945705f9add7f85031c46.tar.gz poi-a275338291635177d92945705f9add7f85031c46.zip |
Fixed locale-sensitive unit tests to pass when running on non-US locales
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@785176 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | build.xml | 28 | ||||
-rw-r--r-- | src/documentation/content/xdocs/status.xml | 1 |
2 files changed, 23 insertions, 6 deletions
@@ -562,6 +562,8 @@ under the License. <junit fork="yes" forkmode="once" printsummary="yes" haltonfailure="${halt.on.test.failure}" failureproperty="main.test.failed" showoutput="true"> <classpath refid="test.classpath"/> + <sysproperty key="user.language" value="en"/> + <sysproperty key="user.country" value="US"/> <sysproperty key="HSSF.testdata.path" file="${main.src.test}/org/apache/poi/hssf/data"/> <sysproperty key="HSLF.testdata.path" file="${main.src.test}/org/apache/poi/hslf/data"/> <sysproperty key="HWPF.testdata.path" file="${main.src.test}/org/apache/poi/hwpf/data"/> @@ -596,6 +598,8 @@ under the License. <pathelement location="${scratchpad.output.test.dir}"/> <pathelement location="${junit.jar1.dir}"/> </classpath> + <sysproperty key="user.language" value="en"/> + <sysproperty key="user.country" value="US"/> <sysproperty key="HSSF.testdata.path" file="${main.src.test}/org/apache/poi/hssf/data"/> <sysproperty key="HPSF.testdata.path" file="${main.src.test}/org/apache/poi/hpsf/data"/> <sysproperty key="HWPF.testdata.path" file="${scratchpad.src.test}/org/apache/poi/hwpf/data"/> @@ -623,6 +627,8 @@ under the License. <pathelement location="${scratchpad.output.test.dir}"/> <pathelement location="${junit.jar1.dir}"/> </classpath> + <sysproperty key="user.language" value="en"/> + <sysproperty key="user.country" value="US"/> <sysproperty key="HSSF.testdata.path" file="${main.src.test}/org/apache/poi/hssf/data"/> <sysproperty key="HPSF.testdata.path" file="${main.src.test}/org/apache/poi/hpsf/data"/> <sysproperty key="HSLF.testdata.path" file="${scratchpad.src.test}/org/apache/poi/hslf/data"/> @@ -665,6 +671,8 @@ under the License. <pathelement location="${scratchpad.output.test.dir}"/> <pathelement location="${junit.jar1.dir}"/> </classpath> + <sysproperty key="user.language" value="en"/> + <sysproperty key="user.country" value="US"/> <sysproperty key="HSSF.testdata.path" file="${main.src.test}/org/apache/poi/hssf/data"/> <sysproperty key="HPSF.testdata.path" file="${scratchpad.src.test}/org/apache/poi/hpsf/data"/> <sysproperty key="HDF.testdata.path" file="${scratchpad.src.test}/org/apache/poi/hdf/data"/> @@ -702,14 +710,16 @@ under the License. <pathelement location="${scratchpad.output.test.dir}"/> <pathelement location="${junit.jar1.dir}"/> </classpath> - <sysproperty key="HSSF.testdata.path" file="${main.src.test}/org/apache/poi/hssf/data"/> + <sysproperty key="user.language" value="en"/> + <sysproperty key="user.country" value="US"/> + <sysproperty key="HSSF.testdata.path" file="${main.src.test}/org/apache/poi/hssf/data"/> <sysproperty key="HPSF.testdata.path" file="${scratchpad.src.test}/org/apache/poi/hpsf/data"/> <sysproperty key="HWPF.testdata.path" file="${scratchpad.src.test}/org/apache/poi/hwpf/data"/> - <sysproperty key="HSLF.testdata.path" file="${scratchpad.src.test}/org/apache/poi/hslf/data"/> - <sysproperty key="HSMF.testdata.path" file="${scratchpad.src.test}/org/apache/poi/hsmf/data"/> - <sysproperty key="HDGF.testdata.path" file="${scratchpad.src.test}/org/apache/poi/hdgf/data"/> - <sysproperty key="HPBF.testdata.path" file="${scratchpad.src.test}/org/apache/poi/hpbf/data"/> - <sysproperty key="POIFS.testdata.path" file="${main.src.test}/org/apache/poi/poifs/data"/> + <sysproperty key="HSLF.testdata.path" file="${scratchpad.src.test}/org/apache/poi/hslf/data"/> + <sysproperty key="HSMF.testdata.path" file="${scratchpad.src.test}/org/apache/poi/hsmf/data"/> + <sysproperty key="HDGF.testdata.path" file="${scratchpad.src.test}/org/apache/poi/hdgf/data"/> + <sysproperty key="HPBF.testdata.path" file="${scratchpad.src.test}/org/apache/poi/hpbf/data"/> + <sysproperty key="POIFS.testdata.path" file="${main.src.test}/org/apache/poi/poifs/data"/> <sysproperty key="java.awt.headless" value="true"/> <sysproperty key="java.awt.headless" value="true"/> <formatter type="plain" usefile="no"/> @@ -734,6 +744,8 @@ under the License. <pathelement location="${contrib.output.test.dir}"/> <pathelement location="${junit.jar1.dir}"/> </classpath> + <sysproperty key="user.language" value="en"/> + <sysproperty key="user.country" value="US"/> <sysproperty key="HSSF.testdata.path" file="${contrib.src.test}/org/apache/poi/hssf/data"/> <sysproperty key="HPSF.testdata.path" file="${contrib.src.test}/org/apache/poi/hpsf/data"/> <sysproperty key="java.awt.headless" value="true"/> @@ -764,6 +776,8 @@ under the License. <target name="test-ooxml" depends="compile-main,compile-ooxml,-test-ooxml-check" unless="ooxml.test.notRequired"> <junit printsummary="yes" fork="yes" forkmode="once" haltonfailure="${halt.on.test.failure}" failureproperty="ooxml.test.failed"> <classpath refid="test.ooxml.classpath" /> + <sysproperty key="user.language" value="en"/> + <sysproperty key="user.country" value="US"/> <sysproperty key="POIFS.testdata.path" file="${main.src.test}/org/apache/poi/poifs/data"/> <sysproperty key="HSSF.testdata.path" file="${main.src.test}/org/apache/poi/hssf/data"/> <sysproperty key="HWPF.testdata.path" file="${scratchpad.src.test}/org/apache/poi/hwpf/data"/> @@ -793,6 +807,8 @@ under the License. <target name="single-test-ooxml" depends="-test-property-check,compile-main,compile-ooxml" description="Runs a single ooxml test case specified with -Dtestcase=classname"> <junit printsummary="yes" showoutput="true" filtertrace="no" haltonfailure="false" > <classpath refid="test.ooxml.classpath" /> + <sysproperty key="user.language" value="en"/> + <sysproperty key="user.country" value="US"/> <sysproperty key="HSSF.testdata.path" file="${main.src.test}/org/apache/poi/hssf/data"/> <sysproperty key="HPSF.testdata.path" file="${main.src.test}/org/apache/poi/hpsf/data"/> <sysproperty key="HSLF.testdata.path" file="${scratchpad.src.test}/org/apache/poi/hslf/data"/> diff --git a/src/documentation/content/xdocs/status.xml b/src/documentation/content/xdocs/status.xml index 7e23bc6fa2..3157a8418a 100644 --- a/src/documentation/content/xdocs/status.xml +++ b/src/documentation/content/xdocs/status.xml @@ -33,6 +33,7 @@ <changes> <release version="3.5-beta7" date="2009-??-??"> + <action dev="POI-DEVELOPERS" type="fix">47372 - Fixed locale-sensitive unit tests to pass when running on non-US locale</action> </release> <release version="3.5-beta6" date="2009-06-22"> <action dev="POI-DEVELOPERS" type="fix">47363 - Fixed HSSFSheet to allow addition of data validations after sheet protection</action> |