Package org.activejpa.examples.petclinic.model

Examples of org.activejpa.examples.petclinic.model.Vet


  @Test
  public void findVets() {
      Collection<Vet> vets = this.clinicService.findVets();
 
      Vet v1 = EntityUtils.getById(vets, Vet.class, 2);
      assertEquals("Leary", v1.getLastName());
      assertEquals(1, v1.getNrOfSpecialties());
      assertEquals("radiology", (v1.getSpecialties().get(0)).getName());
      Vet v2 = EntityUtils.getById(vets, Vet.class, 3);
      assertEquals("Douglas", v2.getLastName());
      assertEquals(2, v2.getNrOfSpecialties());
      assertEquals("dentistry", (v2.getSpecialties().get(0)).getName());
      assertEquals("surgery", (v2.getSpecialties().get(1)).getName());
  }
View Full Code Here

TOP

Related Classes of org.activejpa.examples.petclinic.model.Vet

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.