Author: bdaniel
Date: Thu Sep 28 07:59:39 2006
New Revision: 450883

URL: http://svn.apache.org/viewvc?view=rev&rev=450883
Log:
Removing a redundant XML file from the DAS test suite. The function it was

designed to test was removed long ago. 

Removed:
    
incubator/tuscany/java/das/rdb/src/test/resources/CustOrdersConnectionProps.xml
Modified:
    
incubator/tuscany/java/das/rdb/src/test/java/org/apache/tuscany/das/rdb/test/CommandGroupTests.java
    incubator/tuscany/java/das/rdb/src/test/resources/CustomersOrdersConfig.xml

Modified: 
incubator/tuscany/java/das/rdb/src/test/java/org/apache/tuscany/das/rdb/test/CommandGroupTests.java
URL: 
http://svn.apache.org/viewvc/incubator/tuscany/java/das/rdb/src/test/java/org/apache/tuscany/das/rdb/test/CommandGroupTests.java?view=diff&rev=450883&r1=450882&r2=450883
==============================================================================
--- 
incubator/tuscany/java/das/rdb/src/test/java/org/apache/tuscany/das/rdb/test/CommandGroupTests.java
 (original)
+++ 
incubator/tuscany/java/das/rdb/src/test/java/org/apache/tuscany/das/rdb/test/CommandGroupTests.java
 Thu Sep 28 07:59:39 2006
@@ -97,9 +97,9 @@
      */
     public void testReadWithParmmarker() throws Exception {
 
-        DAS das = 
DAS.FACTORY.createDAS(getConfig("CustOrdersConnectionProps.xml"), 
getConnection());     
+        DAS das = 
DAS.FACTORY.createDAS(getConfig("CustomersOrdersConfig.xml"), getConnection()); 
    
         
-        Command read = das.getCommand("order by id with ?");
+        Command read = das.getCommand("order by id");
         read.setParameter(1, new Integer(1));
         DataObject root = read.executeQuery();
 
@@ -107,26 +107,13 @@
 
     }   
     
-    /**
-     * Specify connection properties in config
-     */
-    public void testReadWithConnectionProperties() throws Exception {
-
-        DAS das = 
DAS.FACTORY.createDAS(getConfig("CustOrdersConnectionProps.xml"), 
getConnection());   
-        
-        Command read = das.getCommand("all customers");
-        DataObject root = read.executeQuery();
-
-        assertEquals(5, root.getList("CUSTOMER").size());
-
-    }
 
     /**
      * Specify connection properties in config. Add explicit update command
      */
     public void testUpdate() throws Exception {
 
-        DAS das = 
DAS.FACTORY.createDAS(getConfig("CustOrdersConnectionProps.xml"), 
getConnection());       
+        DAS das = 
DAS.FACTORY.createDAS(getConfig("CustomersOrdersConfig.xml"), getConnection()); 
      
         
         Command read = das.getCommand("all customers");
         DataObject root = read.executeQuery();

Modified: 
incubator/tuscany/java/das/rdb/src/test/resources/CustomersOrdersConfig.xml
URL: 
http://svn.apache.org/viewvc/incubator/tuscany/java/das/rdb/src/test/resources/CustomersOrdersConfig.xml?view=diff&rev=450883&r1=450882&r2=450883
==============================================================================
--- incubator/tuscany/java/das/rdb/src/test/resources/CustomersOrdersConfig.xml 
(original)
+++ incubator/tuscany/java/das/rdb/src/test/resources/CustomersOrdersConfig.xml 
Thu Sep 28 07:59:39 2006
@@ -30,6 +30,11 @@
         kind="Select">       
     </Command>
     
+    <Command name="update customer"
+        SQL="update CUSTOMER set LASTNAME = 'Pavick' where ID = ?"
+        kind="Update">
+    </Command>  
+     
     <Table tableName="CUSTOMER">
         <Column columnName="ID" primaryKey="true"/>
     </Table>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to