Examples of Animal


Examples of br.com.benefrancis.controle.Animal

        Collection<Telefone> tel = new ArrayList<Telefone>();
        tel.add(t);
        pf.setTelefone(tel);

        Animal a = new Cachorro();
        Date d = new Date();
        d.setDate(15);
        d.setMonth(5 - 1);
        d.setYear(2000 - 1900);

        a.setDataNascimento(d);
        a.setNome("Pluto");
        a.setRaca("Vira lata");
        a.setSexo('M');
        a.setObservacao("Cachorro muito sem vergonha!");
        a.setPessoa(pf);

        Servico s = new Banho();
        s.setData(new Date());
        s.setDescricao("Banho completo");
        s.setValor(20.95);
        s.setAnimal(a);

        Collection<Servico> serv = new ArrayList<Servico>();
        serv.add(s);
        a.setServico(serv);

        Collection<Animal> ani = new ArrayList<Animal>();
        ani.add(a);
        pf.setAnimal(ani);
View Full Code Here

Examples of co.edu.eafit.capacitacionjava.collections.model.Animal

  }
 
  @Test
  public void getOldestAnimalAndRemoveTest() {
    when(queueAnimals.pop()).thenReturn(dog);
    Animal actualAnimal = persistenceManager.getOldestAnimalAndRemove();
    Assert.assertEquals(dog, actualAnimal);
  }
View Full Code Here

Examples of co.edu.eafit.capacitacionjava.collections.model.Animal

  }

  @Test
  public void getAnimalByIdTest() {
    when(tableIdAnimals.get(2)).thenReturn(dog);
    Animal actualAnimal = persistenceManager.getAnimalById(2);
    Assert.assertEquals(dog, actualAnimal);
  }
View Full Code Here

Examples of com.eafit.collectionhomework.model.Animal

  }
 
  @Test
  public void testGetAnimalById()
  {   
    Animal result = da.getAnimalById("666321");
    Assert.assertEquals(result, animalToValidate);
  }
View Full Code Here

Examples of com.eafit.collectionhomework.model.Animal

  }
 
  @Test
  public void testGetOldestAnimalAndRemove()
  {   
    Animal result = da.getOldestAnimalAndRemove();
    Assert.assertEquals(result, firstAnimalToValidate);
  }
View Full Code Here

Examples of com.googlecode.objectify.test.PolymorphicAAATests.Animal

    fact().register(Animal.class);
    fact().register(Mammal.class);
    fact().register(Cat.class);
    fact().register(Dog.class);

    this.animal = new Animal();
    this.animal.name = "Ann";
    ofy().save().entity(this.animal).now();

    this.mammal = new Mammal();
    this.mammal.name = "Mamet";
View Full Code Here

Examples of com.googlecode.objectify.test.PolymorphicAAATests.Animal

  public void testQueryAll() throws Exception
  {
    List<Animal> all = ofy().load().type(Animal.class).list();
    assert all.size() == 4;

    Animal ann = all.get(0);
    assert ann.name.equals(this.animal.name);

    Mammal mamet = (Mammal)all.get(1);
    assert mamet.longHair == this.mammal.longHair;
View Full Code Here

Examples of com.jogodosanimais.object.Animal

   * @param nome
   */
  public void qualAnimal(String nome) {
    String animal = JOptionPane.showInputDialog("Qual Animal você pensou?");
    String acao = JOptionPane.showInputDialog("Um(a)" + ((animal == null) ? "" : animal) + " ____ mas um(a) " + nome + " não.");
    getAnimais().add(new Animal(animal, acao));
  }
View Full Code Here

Examples of com.keaplogik.examples.model.animals.Animal

         * Animals by their animal class. Order doesn't matter, but we want to
         * ensure that animals are grouped by their animal class property.
         */
        Arrays.sort(animals, new Comparator() {
            public int compare(Object t, Object t1) {
                Animal firstAnimal = (Animal) t;
                Animal secondAnimal = (Animal) t1;
                return firstAnimal.getAnimalClass().hashCode() -
                        secondAnimal.getAnimalClass().hashCode();
            }
        });

        for (Animal animal : animals) {
            System.out.println(animal.toString());
View Full Code Here

Examples of com.orientechnologies.orient.test.domain.base.Animal

  }

  @Test(dependsOnMethods = "simpleEntiySetEquals")
  public void complicatedEntityEquals() {
    Set<Animal> animals = new HashSet<Animal>();
    animals.add(new Animal("cat"));
    animals.add(new Animal("dog"));
    animals.add(new Animal("sneake"));
    ComplicatedPerson person = new ComplicatedPerson("John", animals);
    ComplicatedPerson proxy = database.save(person);

    Assert.assertEquals(person, proxy);
    Assert.assertEquals(proxy, person);
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.