Exemplo n.º 1
0
  public static Customer createCustAndOrder(String custName) {

    ResetBasicData me = new ResetBasicData();
    Customer cust1 = insertCustomer(custName);
    me.createOrder1(cust1);
    return cust1;
  }
Exemplo n.º 2
0
  public void insertTestCustAndOrders() {

    Ebean.execute(
        () -> {
          Customer cust1 = insertCustomer("Rob");
          Customer cust2 = insertCustomerNoAddress();
          insertCustomerFiona();
          insertCustomerNoContacts("NocCust");

          createOrder1(cust1);
          createOrder2(cust2);
          createOrder3(cust1);
          createOrder4(cust1);
          createOrder5(cust2);
        });
  }