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

Examples of org.apache.tuscany.das.rdb.test.commands.ReadCustomersStaticTypesCommand.executeQuery()


  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


    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
Copyright © 2018 www.massapi.com. 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.