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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to