svn commit: r169946 - /jakarta/commons/proper/resources/trunk/src/test/org/apache/commons/resources/impl/JDBCResourcesTestCase.java

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r169946 - /jakarta/commons/proper/resources/trunk/src/test/org/apache/commons/resources/impl/JDBCResourcesTestCase.java

jmitchell-3
Author: jmitchell
Date: Thu May 12 22:15:41 2005
New Revision: 169946

URL: http://svn.apache.org/viewcvs?rev=169946&view=rev
Log:
adding new tests, and reports for jcoverage, with any luck I'll have Commons Resources at 100% test coverage by the end of next month

Modified:
    jakarta/commons/proper/resources/trunk/src/test/org/apache/commons/resources/impl/JDBCResourcesTestCase.java

Modified: jakarta/commons/proper/resources/trunk/src/test/org/apache/commons/resources/impl/JDBCResourcesTestCase.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/resources/trunk/src/test/org/apache/commons/resources/impl/JDBCResourcesTestCase.java?rev=169946&r1=169945&r2=169946&view=diff
==============================================================================
--- jakarta/commons/proper/resources/trunk/src/test/org/apache/commons/resources/impl/JDBCResourcesTestCase.java (original)
+++ jakarta/commons/proper/resources/trunk/src/test/org/apache/commons/resources/impl/JDBCResourcesTestCase.java Thu May 12 22:15:41 2005
@@ -22,6 +22,9 @@
  */
 package org.apache.commons.resources.impl;
 
+import java.io.File;
+import java.io.FileReader;
+import java.io.InputStream;
 import java.net.URL;
 import java.sql.Connection;
 import java.sql.DriverManager;
@@ -77,7 +80,10 @@
     public void setUp() throws Exception {
         factory = new JDBCResourcesFactory();
         resources = factory.getResources(NAME, getBase());
-        
+
+// InputStream in = this.getClass().getResourceAsStream("init.sql");
+//        File file = new File("init.sql");
+
         // change this to load from init.sql
         String[] sql = {""
         + "create table resources ("
@@ -92,6 +98,7 @@
  , "Insert into resources (locale, msgKey, val) Values ('', 'test.base', '[Base] ONLY');"
         , "Insert into resources (locale, msgKey, val) Values ('', 'test.specific', '[Base] SPECIFIC');"
         , "Insert into resources (locale, msgKey, val) Values ('', 'test.inherit', '[Base] INHERIT');"
+        , "Insert into resources (locale, msgKey, val) Values ('', 'test.message.single', '[Base] REPLACE {0}');"
         , "Insert into resources (locale, msgKey, val) Values ('', 'test.message', '[Base] REPLACE {0} WITH {1}');"
         , "Insert into resources (locale, msgKey, val) Values ('en', 'test.specific', '[en] SPECIFIC');"
         , "Insert into resources (locale, msgKey, val) Values ('en', 'test.inherit', '[en] INHERIT');"



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]