db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kmars...@apache.org
Subject svn commit: r1491590 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/i18n/UrlLocaleTest.java
Date Mon, 10 Jun 2013 20:15:18 GMT
Author: kmarsden
Date: Mon Jun 10 20:15:11 2013
New Revision: 1491590

URL: http://svn.apache.org/r1491590
Log:
DERBY-6255 convert i18n/messageLocale.sql

additional minor cleanup of use of literal extinout in UrlLocaleTest


Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/i18n/UrlLocaleTest.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/i18n/UrlLocaleTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/i18n/UrlLocaleTest.java?rev=1491590&r1=1491589&r2=1491590&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/i18n/UrlLocaleTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/i18n/UrlLocaleTest.java
Mon Jun 10 20:15:11 2013
@@ -120,13 +120,13 @@ public class UrlLocaleTest extends BaseJ
      */
     public void testUrlLocaleNegative() throws SQLException {
         //Connection without territory specified in territory attribute        
-        String url = TestConfiguration.getCurrent().getJDBCUrl("../extinout/fail1");
+        String url = getReadWriteJDBCURL("fail1");
         url += ";create=true;territory=";
         checkInvalidTerritoryFormat(url);
         //- database will not have been created so this connection will fail
-        url = TestConfiguration.getCurrent().getJDBCUrl("../extinout/fail1");
+        url = getReadWriteJDBCURL("fail1");
         try {
-            Connection locConn = DriverManager.getConnection(url);
+            DriverManager.getConnection(url);
             fail("Database connect " + url + " should fail because db does not exist");
         }    catch (SQLException se ) {   
             assertSQLState("XJ004", se);
@@ -260,9 +260,9 @@ public class UrlLocaleTest extends BaseJ
   
     private void checkInvalidTerritoryFormat(String territory) {
         try {
-            String url = TestConfiguration.getCurrent().getJDBCUrl("../extinout/fail3");
+            String url = getReadWriteJDBCURL("fail3");
             url += ";create=true;territory=" + territory;
-            Connection locConn = DriverManager.getConnection(url);
+            DriverManager.getConnection(url);
             fail("connection without territory: " + url + "should have failed");
         } catch (SQLException se ) {
           assertSQLState("XJ041", se);



Mime
View raw message