tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdan...@apache.org
Subject svn commit: r450883 - in /incubator/tuscany/java/das/rdb/src/test: java/org/apache/tuscany/das/rdb/test/CommandGroupTests.java resources/CustOrdersConnectionProps.xml resources/CustomersOrdersConfig.xml
Date Thu, 28 Sep 2006 14:59:40 GMT
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: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org


Mime
View raw message