Examples of PetType


Examples of org.springframework.samples.petclinic.PetType

  public void testGetPetTypes() {
    Collection<PetType> petTypes = this.clinic.getPetTypes();
    assertEquals("JDBC query must show the same number of pet types", super.countRowsInTable("types"),
        petTypes.size());
    PetType t1 = EntityUtils.getById(petTypes, PetType.class, 1);
    assertEquals("cat", t1.getName());
    PetType t4 = EntityUtils.getById(petTypes, PetType.class, 4);
    assertEquals("snake", t4.getName());
  }
View Full Code Here

Examples of org.springframework.samples.petclinic.model.PetType

  @Test
  public void getPetTypes() {
      Collection<PetType> petTypes = this.clinicService.findPetTypes();
 
      PetType petType1 = EntityUtils.getById(petTypes, PetType.class, 1);
      assertEquals("cat", petType1.getName());
      PetType petType4 = EntityUtils.getById(petTypes, PetType.class, 4);
      assertEquals("snake", petType4.getName());
  }
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.