Author: jverhaeg(a)redhat.com
Date: 2008-09-19 11:18:11 -0400 (Fri, 19 Sep 2008)
New Revision: 537
Modified:
trunk/dna-common/src/test/java/org/jboss/dna/common/i18n/I18nTest.java
Log:
DNA-227: Since the test data that the I18n test class tests against is a US resource
bundle, changed I18n test class to set US locale before running tests to ensure they
succeed when executed from different locales.
Modified: trunk/dna-common/src/test/java/org/jboss/dna/common/i18n/I18nTest.java
===================================================================
--- trunk/dna-common/src/test/java/org/jboss/dna/common/i18n/I18nTest.java 2008-09-18
19:21:28 UTC (rev 536)
+++ trunk/dna-common/src/test/java/org/jboss/dna/common/i18n/I18nTest.java 2008-09-19
15:18:11 UTC (rev 537)
@@ -38,6 +38,7 @@
import org.jboss.dna.common.CommonI18n;
import org.jboss.dna.common.SystemFailureException;
import org.junit.Before;
+import org.junit.BeforeClass;
import org.junit.Test;
/**
@@ -46,6 +47,11 @@
*/
public final class I18nTest {
+ @BeforeClass
+ public static void beforeClass() {
+ Locale.setDefault(Locale.US);
+ }
+
@Before
public void beforeEach() throws Exception {
clearFields(TestI18n.class);
Show replies by date