Package org.crank.crud.model.inquiry

Examples of org.crank.crud.model.inquiry.PetClinicInquiry


  public void setup(){
   
        for (int index = 0; index < 10; index ++) {
          PetClinicLead lead = new PetClinicLead();
          lead.setName("testLead" + index);
          PetClinicInquiry inquiry = new PetClinicInquiry();
          inquiry.setName("testInquiry" + index);
          inquiry.setAnotherProp("testInquiryAP" + index);
          lead.setInquiry(inquiry);
          inquiryRepo().store(inquiry);
          leadRepo().store(lead);
        }
View Full Code Here


    DataModel model = petClinicLeadCrud.getModel();
    assert model != null : "The model is not null";
    List<Row> list = (List<Row>) model.getWrappedData();
    assert list.size() > 0 : "There is some data in here";
    Row row = list.get(0);
    PetClinicInquiry pci = (PetClinicInquiry) row.get("inquiry");
    assert pci.getAnotherProp().startsWith("testInquiry") : "Data seems correct";
   
  }
View Full Code Here

TOP

Related Classes of org.crank.crud.model.inquiry.PetClinicInquiry

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.