db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bpendle...@apache.org
Subject svn commit: r1098033 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/tools/SysinfoCPCheckTest.java
Date Sat, 30 Apr 2011 00:58:31 GMT
Author: bpendleton
Date: Sat Apr 30 00:58:31 2011
New Revision: 1098033

URL: http://svn.apache.org/viewvc?rev=1098033&view=rev
Log:
DERBY-5211: Make SysinfoCPCheckTest pass in non-English locale

This patch was contributed by Houx Zhang (houxzhang at gmail dot com)

This test verifies the text of certain messages, so the test needs
to be run in the English locale. The patch uses LocaleTestSetup
to control the test locale.


Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/tools/SysinfoCPCheckTest.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/tools/SysinfoCPCheckTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/tools/SysinfoCPCheckTest.java?rev=1098033&r1=1098032&r2=1098033&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/tools/SysinfoCPCheckTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/tools/SysinfoCPCheckTest.java
Sat Apr 30 00:58:31 2011
@@ -30,6 +30,7 @@ import java.io.OutputStream;
 import java.io.PrintStream;
 import java.io.UnsupportedEncodingException;
 import java.security.AccessController;
+import java.util.Locale;
 
 import junit.framework.Test;
 import junit.framework.TestSuite;
@@ -37,6 +38,7 @@ import junit.framework.TestSuite;
 import org.apache.derbyTesting.junit.BaseJDBCTestCase;
 import org.apache.derbyTesting.junit.Derby;
 import org.apache.derbyTesting.junit.JDBC;
+import org.apache.derbyTesting.junit.LocaleTestSetup;
 
 public class SysinfoCPCheckTest extends BaseJDBCTestCase {
 
@@ -60,7 +62,7 @@ public class SysinfoCPCheckTest extends 
             isClient=false;
 
         Test suite = new TestSuite(SysinfoCPCheckTest.class, "Sysinfo ClassPath Checker");
       
-        return suite;
+        return new LocaleTestSetup(suite, Locale.ENGLISH);
     }
 
     /**



Mime
View raw message