Examples of Animal


Examples of net.mdked.Jrachgame.world.Animal

      }
    }
    //jivotnii
    int jiv = 45;
    for (int num = 0; num < jiv; num++) {
      Animal prdmt = new Animal(0, deerAttack.copy(), deerDyin.copy(),deerWalk.copy());
      prdmt.x = (float) ((map.length * 32) * Math.random());
      prdmt.y = (float) ((map.length * 32) * Math.random());
      World.objecz.add(prdmt);
      World.animalz.add(prdmt);
    }
    int jiv2 = 10;
    for (int numa = 0; numa < jiv2; numa++) {
      Animal prdmts = new Animal(1, bearAttack.copy(),bearDyin.copy(),bearWalk.copy());
      prdmts.x = (float) ((map.length * 32) * Math.random());
      prdmts.y = (float) ((map.length * 32) * Math.random());

      World.objecz.add(prdmts);
      World.animalz.add(prdmts);
 
View Full Code Here

Examples of org.apache.cxf.demo.aegis.types.Animal

    private Zoo populateZoo() {
        Zoo zoo = new Zoo();
        zoo.setFounder("Noah");
        zoo.setName("The Original Zoo");
        Map<String, Animal> animals = new HashMap<String, Animal>();
        Animal a = new Animal();
        a.setName("lion");
        animals.put("lion", a);
        a = new Animal();
        a.setName("tiger");
        animals.put("tiger", a);
        a = new Animal();
        a.setName("bear");
        animals.put("bear", a);
        zoo.setAnimals(animals);
        return zoo;
    }
View Full Code Here

Examples of org.apache.wink.providers.jackson.internal.pojo.polymorphic.Animal

                new JSONObject(response.getContentAsString())));
       
        // call the provider as though the wink-client was in use on the client side
        InputStream is = new ByteArrayInputStream(response.getContentAsByteArray());
        JacksonJsonProvider jacksonProvider = new JacksonJsonProvider();
        Animal animal = (Animal)jacksonProvider.readFrom(Object.class, Animal.class, null, MediaType.APPLICATION_JSON_TYPE, null, is);
       
        // make sure pseudo polymorphism support works.  See Animal class with @JsonCreator and @JsonProperty annotations
        assertEquals(Dog.class, animal.getClass());

    }
View Full Code Here

Examples of org.apache.wink.providers.jackson.internal.pojo.polymorphic.Animal

    public static class AnimalResource {

        @GET
        @Produces("application/json")
        public Animal getDog() throws IOException {
            Animal animal = new Dog();
            return animal;
        }
View Full Code Here

Examples of org.apache.wink.providers.jackson.internal.pojo.polymorphic.Animal

                new JSONObject(response.getContentAsString())));
       
        // call the provider as though the wink-client was in use on the client side
        InputStream is = new ByteArrayInputStream(response.getContentAsByteArray());
        JacksonJsonProvider jacksonProvider = new JacksonJsonProvider();
        Animal animal = (Animal)jacksonProvider.readFrom(Object.class, Animal.class, null, MediaType.APPLICATION_JSON_TYPE, null, is);
       
        // make sure pseudo polymorphism support works.  See Animal class with @JsonCreator and @JsonProperty annotations
        assertEquals(Dog.class, animal.getClass());

    }
View Full Code Here

Examples of org.apache.wink.providers.jackson.internal.pojo.polymorphic.Animal

    public static class AnimalResource {

        @GET
        @Produces("application/json")
        public Animal getDog() throws IOException {
            Animal animal = new Dog();
            return animal;
        }
View Full Code Here

Examples of org.easycassandra.bean.model.Animal

    /**
     * run the test.
     */
    @Test
    public void insertErrorTest() {
        Animal animal = new Animal();
        animal.setName("Lion");
        animal.setRace("I know no");
        animal.setCountry("Brazil");
        Assert.assertTrue(dao.insert(animal));

    }
View Full Code Here

Examples of org.geekhub.dt.objects.Animal

    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        HttpSession session = request.getSession();
        TreeMap<String, List<Animal>> map = (TreeMap<String, List<Animal>>) session.getAttribute("map");

        int id = Integer.parseInt(request.getParameter("id"));
        Animal animalToDelete = null;
        for (List<Animal> animals : map.values()) {
            for (Animal animal : animals) {
                if (animal.getId() == id) {
                    animalToDelete = animal;
                }
View Full Code Here

Examples of org.jongo.model.Animal

    @Test
    public void canFindInheritedEntity() throws IOException {
        collection.save(new Fox("fantastic", "roux"));

        Animal animal = collection.findOne("{name:'fantastic'}").as(Animal.class);

        assertThat(animal).isInstanceOf(Fox.class);
        assertThat(animal.getId()).isNotNull();
    }
View Full Code Here

Examples of org.nutz.ioc.json.pojo.Animal

    s = s + "\nevents:{";
    s = s + "\n  create: 'org.nutz.ioc.json.pojo.WhenCreateFox'";
    s = s + "\n}";
    Ioc ioc = I(J("fox", s));

    Animal fox = ioc.get(Animal.class, "fox");
    assertEquals("$Fox", fox.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.