Package org.apache.tuscany.das.rdb.test.commands

Examples of org.apache.tuscany.das.rdb.test.commands.ReadCustomersStaticTypesCommand


    assertEquals(4, root.getList("CUSTOMER").size());

  }

  public void testReadCustomersStaticTypes() throws Exception {
    ReadCustomersStaticTypesCommand cmd = new ReadCustomersStaticTypesCommand();
    cmd.setConnection(getConnection());
    cmd.setParameterValue("LASTNAME", "Williams");
   
    DataGraphRoot root = (DataGraphRoot) cmd.executeQuery();

    List customers = root.getCustomers();
    assertEquals(4, customers.size());
   
    Customer cust1 = (Customer) customers.get(0);
View Full Code Here


        assertEquals(4, root.getList("CUSTOMER").size());

    }

    public void testReadCustomersStaticTypes() throws Exception {
        ReadCustomersStaticTypesCommand cmd = new ReadCustomersStaticTypesCommand();
        cmd.setConnection(getConnection());
        cmd.setParameter(1, "Williams");

        DataObject root = cmd.executeQuery();

        List customers = root.getList("Customer");
        assertEquals(4, customers.size());

        Customer cust1 = (Customer) customers.get(0);
View Full Code Here

TOP

Related Classes of org.apache.tuscany.das.rdb.test.commands.ReadCustomersStaticTypesCommand

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.