bobobear / lambdaj

Automatically exported from code.google.com/p/lambdaj
Apache License 2.0
0 stars 0 forks source link

public void LambdaTest.testAvg() references Avg class that was not committed to repo #56

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
    @Test
    public void testAvg() {
        List<Person> meAndMyFriends = asList(me, luca, biagio, celestino);
        int averageAge = (Integer)aggregate(meAndMyFriends, 
                                                                                              new Avg(), //not compiling, Avg cannot be resolved to a type
                                                                                              on(Person.class).getAge());
        assertEquals(averageAge, (35+29+39+29)/4);
        System.out.println(averageAge);
    }

Original issue reported on code.google.com by renato.c...@gmail.com on 16 Dec 2010 at 10:08

GoogleCodeExporter commented 9 years ago
Fixed

Original comment by mario.fu...@gmail.com on 17 Dec 2010 at 8:46