db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t.@apache.org
Subject svn commit: r571791 - /db/torque/test/trunk/test-project/src/java/org/apache/torque/DataTest.java
Date Sat, 01 Sep 2007 12:44:04 GMT
Author: tv
Date: Sat Sep  1 05:44:04 2007
New Revision: 571791

URL: http://svn.apache.org/viewvc?rev=571791&view=rev
Log:
Added a test to check whether the "default" database provides a valid adapter

Modified:
    db/torque/test/trunk/test-project/src/java/org/apache/torque/DataTest.java

Modified: db/torque/test/trunk/test-project/src/java/org/apache/torque/DataTest.java
URL: http://svn.apache.org/viewvc/db/torque/test/trunk/test-project/src/java/org/apache/torque/DataTest.java?rev=571791&r1=571790&r2=571791&view=diff
==============================================================================
--- db/torque/test/trunk/test-project/src/java/org/apache/torque/DataTest.java (original)
+++ db/torque/test/trunk/test-project/src/java/org/apache/torque/DataTest.java Sat Sep  1
05:44:04 2007
@@ -768,6 +768,19 @@
     }
 
     /**
+     * test if a select from the "default" database works
+     * @throws Exception (NPE) if the test fails
+     */
+    public void testSelectFromDefault() throws Exception
+    {
+        Criteria criteria = new Criteria("default");
+        
+        criteria.addSelectColumn(BookPeer.BOOK_ID);
+
+        BasePeer.doSelect(criteria);
+    }
+
+    /**
      * test the behaviour if a connection is supplied to access the database,
      * but it is null. All methods on the user level should be able to
      * handle this.



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message