@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
Original issue reported on code.google.com by
renato.c...@gmail.com
on 16 Dec 2010 at 10:08